#[non_exhaustive]pub enum TypeInfo {
StaticType(&'static StaticType),
Typed(Arc<Rtti>),
Variant(Arc<VariantRtti>),
Any(AnyTypeInfo),
}
Expand description
Type information about a value, that can be printed for human consumption through its Display implementation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StaticType(&'static StaticType)
The static type of a value.
Typed(Arc<Rtti>)
A named type.
Variant(Arc<VariantRtti>)
A variant.
Any(AnyTypeInfo)
Reference to an external type.
Trait Implementations§
source§impl PartialEq for TypeInfo
impl PartialEq for TypeInfo
impl Eq for TypeInfo
impl StructuralPartialEq for TypeInfo
Auto Trait Implementations§
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnwindSafe for TypeInfo
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.