Enum typify_impl::TypeDetails
source · [−]pub enum TypeDetails<'a> {
Enum(TypeEnum<'a>),
Struct(TypeStruct<'a>),
Newtype(TypeNewtype<'a>),
Option(TypeId),
Array(TypeId),
Map(TypeId),
Set(TypeId),
Box(TypeId),
Tuple(Box<dyn Iterator<Item = TypeId> + 'a>),
Unit,
Builtin(&'a str),
}
Expand description
Type details returned by Type::details() to inspect a type.
Variants
Enum(TypeEnum<'a>)
Struct(TypeStruct<'a>)
Newtype(TypeNewtype<'a>)
Option(TypeId)
Array(TypeId)
Map(TypeId)
Set(TypeId)
Box(TypeId)
Tuple(Box<dyn Iterator<Item = TypeId> + 'a>)
Unit
Builtin(&'a str)
Auto Trait Implementations
impl<'a> !RefUnwindSafe for TypeDetails<'a>
impl<'a> !Send for TypeDetails<'a>
impl<'a> !Sync for TypeDetails<'a>
impl<'a> Unpin for TypeDetails<'a>
impl<'a> !UnwindSafe for TypeDetails<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more