#[repr(u8)]pub enum TypeId<'a> {
Concrete(Guid),
Pointer(PointerTypeId<'a>),
Array(ArrayTypeId<'a>),
}Expand description
Variants§
Concrete(Guid)
Represents a concrete type with a specific Guid
Pointer(PointerTypeId<'a>)
Represents a pointer to a type
Array(ArrayTypeId<'a>)
Represents an array of a specific type
Trait Implementations§
Source§impl<'a> From<PointerTypeId<'a>> for TypeId<'a>
impl<'a> From<PointerTypeId<'a>> for TypeId<'a>
Source§fn from(pointer: PointerTypeId<'a>) -> Self
fn from(pointer: PointerTypeId<'a>) -> Self
Converts to this type from the input type.
impl<'a> Eq for TypeId<'a>
impl<'a> Send for TypeId<'a>
impl<'a> StructuralPartialEq for TypeId<'a>
impl<'a> Sync for TypeId<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeId<'a>
impl<'a> RefUnwindSafe for TypeId<'a>
impl<'a> Unpin for TypeId<'a>
impl<'a> UnwindSafe for TypeId<'a>
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