pub enum Type {
Show 15 variants
Address,
Array(ArrayType),
Boolean,
Composite(CompositeType),
Field,
Group,
Identifier(Identifier),
Integer(IntegerType),
Mapping(MappingType),
Scalar,
Signature,
String,
Tuple(TupleType),
Unit,
Err,
}
Expand description
Explicit type used for defining a variable or expression type
Variants§
Address
The address
type.
Array(ArrayType)
The array type.
Boolean
The bool
type.
Composite(CompositeType)
The struct
type.
Field
The field
type.
Group
The group
type.
Identifier(Identifier)
A reference to a built in type.
Integer(IntegerType)
An integer type.
Mapping(MappingType)
A mapping type.
Scalar
The scalar
type.
Signature
The signature
type.
String
The string
type.
Tuple(TupleType)
A static tuple of at least one type.
Unit
The unit
type.
Err
Placeholder for a type that could not be resolved or was not well-formed. Will eventually lead to a compile error.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Type
impl PartialEq for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
fn take_from_value<D>(
value: &mut Value,
field: &str
) -> Result<T, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.