pub enum TypeKind<'t> {
Primitive(&'t Guid),
Struct(StructType<'t>),
Pointer(PointerType<'t>),
Array(ArrayType<'t>),
}
Variants§
Primitive(&'t Guid)
Primitive types (i.e. ()
, bool
, float
, int
, etc.)
Struct(StructType<'t>)
Struct types (i.e. record, tuple, or unit structs)
Pointer(PointerType<'t>)
A pointer to another type
Array(ArrayType<'t>)
An array of values
Trait Implementations§
Auto Trait Implementations§
impl<'t> Freeze for TypeKind<'t>
impl<'t> !RefUnwindSafe for TypeKind<'t>
impl<'t> !Send for TypeKind<'t>
impl<'t> !Sync for TypeKind<'t>
impl<'t> Unpin for TypeKind<'t>
impl<'t> !UnwindSafe for TypeKind<'t>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more