pub enum Type {
Show 24 variants
Bool,
U8,
U16,
U32,
U64,
S8,
S16,
S32,
S64,
F32,
F64,
Char,
String,
List(Arc<Type>),
Record(Arc<[Type]>),
Tuple(Arc<[Type]>),
Variant(Arc<[Option<Type>]>),
Enum,
Option(Arc<Type>),
Result {
ok: Option<Arc<Type>>,
err: Option<Arc<Type>>,
},
Flags,
Future(Option<Arc<Type>>),
Stream(Option<Arc<Type>>),
Resource(Resource),
}
Expand description
Value type
Variants§
Bool
U8
U16
U32
U64
S8
S16
S32
S64
F32
F64
Char
String
List(Arc<Type>)
Record(Arc<[Type]>)
Tuple(Arc<[Type]>)
Variant(Arc<[Option<Type>]>)
Enum
Option(Arc<Type>)
Result
Flags
Future(Option<Arc<Type>>)
Stream(Option<Arc<Type>>)
Resource(Resource)
Implementations§
Trait Implementations§
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.