pub struct DynamicMeta {
pub type_: Option<Ident>,
pub derived_types: Vec<Ident>,
}
Expand description
Type information that contains data about dynamic types.
Fields§
§type_: Option<Ident>
Base type of the dynamic type.
derived_types: Vec<Ident>
List of derived types.
Trait Implementations§
Source§impl Clone for DynamicMeta
impl Clone for DynamicMeta
Source§fn clone(&self) -> DynamicMeta
fn clone(&self) -> DynamicMeta
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 DynamicMeta
impl Debug for DynamicMeta
Source§impl Default for DynamicMeta
impl Default for DynamicMeta
Source§fn default() -> DynamicMeta
fn default() -> DynamicMeta
Returns the “default value” for a type. Read more
Source§impl From<DynamicMeta> for MetaType
impl From<DynamicMeta> for MetaType
Source§fn from(value: DynamicMeta) -> Self
fn from(value: DynamicMeta) -> Self
Converts to this type from the input type.
Source§impl TypeEq for DynamicMeta
impl TypeEq for DynamicMeta
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 DynamicMeta
impl RefUnwindSafe for DynamicMeta
impl Send for DynamicMeta
impl Sync for DynamicMeta
impl Unpin for DynamicMeta
impl UnwindSafe for DynamicMeta
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