pub struct MetaType { /* private fields */ }Expand description
Type-erased handle to a concrete TypeInfo implementation.
Implementations§
Source§impl MetaType
impl MetaType
Sourcepub fn type_decl(&self, registry: &mut Registry) -> TypeDecl
pub fn type_decl(&self, registry: &mut Registry) -> TypeDecl
Produces the use-site type declaration for the represented type.
Sourcepub fn type_def(&self, registry: &mut Registry) -> Option<Type>
pub fn type_def(&self, registry: &mut Registry) -> Option<Type>
Produces the stored named definition for the represented type, if any.
Sourcepub fn module_path(&self) -> &'static str
pub fn module_path(&self) -> &'static str
Returns the module path associated with the represented named type.
Trait Implementations§
impl Copy for MetaType
impl Eq for MetaType
Source§impl Ord for MetaType
impl Ord for MetaType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Auto Trait Implementations§
impl Freeze for MetaType
impl RefUnwindSafe for MetaType
impl Send for MetaType
impl Sync for MetaType
impl Unpin for MetaType
impl UnsafeUnpin 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