pub struct DerivedTypeMeta {
pub type_: TypeIdent,
pub display_name: Option<String>,
}Expand description
Meta^ information about a derived type.
Fields§
§type_: TypeIdentIdentifier of the derived type.
display_name: Option<String>Name of the element to use inside the generated code.
Implementations§
Source§impl DerivedTypeMeta
impl DerivedTypeMeta
Sourcepub fn new(type_: TypeIdent) -> Self
pub fn new(type_: TypeIdent) -> Self
Creates a new DerivedTypeMeta instance with the given type_.
Trait Implementations§
Source§impl Clone for DerivedTypeMeta
impl Clone for DerivedTypeMeta
Source§fn clone(&self) -> DerivedTypeMeta
fn clone(&self) -> DerivedTypeMeta
Returns a duplicate 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 DerivedTypeMeta
impl Debug for DerivedTypeMeta
Source§impl TypeEq for DerivedTypeMeta
impl TypeEq for DerivedTypeMeta
Source§fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &MetaTypes)
fn type_hash<H: Hasher>(&self, hasher: &mut H, types: &MetaTypes)
Feeds this value into the given
Hasher.Source§fn type_eq(&self, other: &Self, types: &MetaTypes) -> bool
fn type_eq(&self, other: &Self, types: &MetaTypes) -> bool
Check if this instance is equal to the
other instance using the passed
types to resolve identifiers.Source§fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &MetaTypes)
fn type_hash_slice<H: Hasher>(slice: &[Self], hasher: &mut H, types: &MetaTypes)
Feeds a slice of this value into the given
Hasher.Source§fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &MetaTypes) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
fn type_eq_iter<'a, X, Y>(x: X, y: Y, types: &MetaTypes) -> boolwhere
Self: 'a,
X: IntoIterator<Item = &'a Self>,
Y: IntoIterator<Item = &'a Self>,
Check if the two passed iterators contain type equal elements.
Auto Trait Implementations§
impl Freeze for DerivedTypeMeta
impl RefUnwindSafe for DerivedTypeMeta
impl Send for DerivedTypeMeta
impl Sync for DerivedTypeMeta
impl Unpin for DerivedTypeMeta
impl UnsafeUnpin for DerivedTypeMeta
impl UnwindSafe for DerivedTypeMeta
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