Enum wit_encoder::Type
source · 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>)
Tuple(Tuple)
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 tuple(types: impl IntoIterator<Item = Type>) -> Self
pub fn named(name: impl Into<Ident>) -> Self
Trait Implementations§
source§impl Ord for Type
impl Ord for Type
source§impl PartialEq for Type
impl PartialEq for Type
source§impl PartialOrd for Type
impl PartialOrd for Type
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)