pub enum Type {
}
Variants§
Bool
U8
U16
U32
U64
S8
S16
S32
S64
F32
F64
Char
String
Borrow(Ident)
Option(Box<Type>)
Result(Box<Result_>)
List(Box<Type>)
FixedSizeList(Box<Type>, u32)
Tuple(Tuple)
Future(Option<Box<Type>>)
Stream(Option<Box<Type>>)
ErrorContext
Named(Ident)
Implementations§
Source§impl Type
impl Type
pub fn borrow(name: impl Into<Ident>) -> Self
pub fn option(type_: Type) -> Self
pub fn result(result: Result_) -> Self
pub fn result_ok(type_: Type) -> Self
pub fn result_err(type_: Type) -> Self
pub fn result_both(ok: Type, err: Type) -> Self
pub fn result_empty() -> Self
pub fn list(type_: Type) -> Self
pub fn fixed_size_list(type_: Type, size: u32) -> Self
pub fn tuple(types: impl IntoIterator<Item = Type>) -> Self
pub fn future(type_: Option<Type>) -> Self
pub fn stream(type_: Option<Type>) -> Self
pub fn named(name: impl Into<Ident>) -> Self
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 Ord for Type
impl Ord for Type
Source§impl PartialOrd for Type
impl PartialOrd 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.