Struct scale_info::MetaType
source · pub struct MetaType { /* private fields */ }
Expand description
A metatype abstraction.
Allows to store compile-time type information at runtime. This again allows to derive type ID and type definition from it.
This needs a conversion to another representation of types in order to be serializable.
Implementations§
Trait Implementations§
source§impl Ord for MetaType
impl Ord for MetaType
source§impl PartialEq for MetaType
impl PartialEq for MetaType
source§impl PartialOrd for MetaType
impl PartialOrd for MetaType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for MetaType
impl Eq for MetaType
Auto Trait Implementations§
impl Freeze for MetaType
impl RefUnwindSafe for MetaType
impl Send for MetaType
impl Sync for MetaType
impl Unpin for MetaType
impl UnwindSafe for MetaType
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