pub enum TypeVariant {
Show 19 variants
Void,
Bool,
Int8,
Int16,
Int32,
Int64,
UInt8,
UInt16,
UInt32,
UInt64,
Float32,
Float64,
Text,
Data,
Struct(RawBrandedStructSchema),
AnyPointer,
Capability,
Enum(RawEnumSchema),
List(Type),
}Expand description
A Type unfolded one level. Suitable for pattern matching. Can be trivially
converted to Type via the From/Into traits.
Variants§
Void
Bool
Int8
Int16
Int32
Int64
UInt8
UInt16
UInt32
UInt64
Float32
Float64
Text
Data
Struct(RawBrandedStructSchema)
AnyPointer
Capability
Enum(RawEnumSchema)
List(Type)
Trait Implementations§
Source§impl Clone for TypeVariant
impl Clone for TypeVariant
impl Copy for TypeVariant
Source§impl Debug for TypeVariant
impl Debug for TypeVariant
impl Eq for TypeVariant
Source§impl From<TypeVariant> for Type
impl From<TypeVariant> for Type
Source§fn from(tv: TypeVariant) -> Type
fn from(tv: TypeVariant) -> Type
Converts to this type from the input type.
Source§impl Hash for TypeVariant
impl Hash for TypeVariant
Source§impl PartialEq for TypeVariant
impl PartialEq for TypeVariant
impl StructuralPartialEq for TypeVariant
Auto Trait Implementations§
impl Freeze for TypeVariant
impl RefUnwindSafe for TypeVariant
impl Send for TypeVariant
impl Sync for TypeVariant
impl Unpin for TypeVariant
impl UnsafeUnpin for TypeVariant
impl UnwindSafe for TypeVariant
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