Struct donet_core::dctype::DCTypeDefinition
source · pub struct DCTypeDefinition {
alias: Option<String>,
pub data_type: DCTypeEnum,
pub size: DgSizeTag,
}
Fields§
§alias: Option<String>
§data_type: DCTypeEnum
§size: DgSizeTag
Implementations§
Trait Implementations§
source§impl Clone for DCTypeDefinition
impl Clone for DCTypeDefinition
source§fn clone(&self) -> DCTypeDefinition
fn clone(&self) -> DCTypeDefinition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DCTypeDefinition
impl Debug for DCTypeDefinition
source§impl Display for DCTypeDefinition
impl Display for DCTypeDefinition
source§impl From<DCTypeEnum> for DCTypeDefinition
impl From<DCTypeEnum> for DCTypeDefinition
Creates a new DCTypeDefinition struct with a DC type set.
source§fn from(value: DCTypeEnum) -> Self
fn from(value: DCTypeEnum) -> Self
Converts to this type from the input type.
source§impl LegacyDCHash for DCTypeDefinition
impl LegacyDCHash for DCTypeDefinition
source§fn generate_hash(&self, hashgen: &mut DCHashGenerator)
fn generate_hash(&self, hashgen: &mut DCHashGenerator)
Accumulates the properties of this DC element into the file hash.
source§impl PartialEq for DCTypeDefinition
impl PartialEq for DCTypeDefinition
impl Eq for DCTypeDefinition
impl StructuralPartialEq for DCTypeDefinition
Auto Trait Implementations§
impl Freeze for DCTypeDefinition
impl RefUnwindSafe for DCTypeDefinition
impl Send for DCTypeDefinition
impl Sync for DCTypeDefinition
impl Unpin for DCTypeDefinition
impl UnwindSafe for DCTypeDefinition
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)