pub enum Type<'a> {
Show 24 variants
Bool,
Byte,
UByte,
Short,
UShort,
Int,
UInt,
Float,
Long,
ULong,
Double,
Int8,
UInt8,
Int16,
UInt16,
Int32,
UInt32,
Int64,
UInt64,
Float32,
Float64,
String,
Array(Box<Type<'a>>),
Ident(QualifiedIdent<'a>),
}Expand description
Scalar, array, and user-defined types.
Variants§
Bool
Byte
UByte
Short
UShort
Int
UInt
Float
Long
ULong
Double
Int8
UInt8
Int16
UInt16
Int32
UInt32
Int64
UInt64
Float32
Float64
String
Array(Box<Type<'a>>)
Ident(QualifiedIdent<'a>)
Implementations§
Trait Implementations§
Source§impl<'a> TryFrom<&Type<'a>> for DefaultValue<'a>
impl<'a> TryFrom<&Type<'a>> for DefaultValue<'a>
Source§impl<'a> TryFrom<&Type<'a>> for EnumBaseType
impl<'a> TryFrom<&Type<'a>> for EnumBaseType
impl<'a> Eq for Type<'a>
impl<'a> StructuralPartialEq for Type<'a>
Auto Trait Implementations§
impl<'a> Freeze for Type<'a>
impl<'a> RefUnwindSafe for Type<'a>
impl<'a> Send for Type<'a>
impl<'a> Sync for Type<'a>
impl<'a> Unpin for Type<'a>
impl<'a> UnwindSafe for Type<'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