#[repr(C, u8)]pub enum wasmtime_component_valtype_t {
Show 26 variants
Bool,
S8,
S16,
S32,
S64,
U8,
U16,
U32,
U64,
F32,
F64,
Char,
String,
List(Box<wasmtime_component_list_type_t>),
Record(Box<wasmtime_component_record_type_t>),
Tuple(Box<wasmtime_component_tuple_type_t>),
Variant(Box<wasmtime_component_variant_type_t>),
Enum(Box<wasmtime_component_enum_type_t>),
Option(Box<wasmtime_component_option_type_t>),
Result(Box<wasmtime_component_result_type_t>),
Flags(Box<wasmtime_component_flags_type_t>),
Own(Box<wasmtime_component_resource_type_t>),
Borrow(Box<wasmtime_component_resource_type_t>),
Future(Box<wasmtime_component_future_type_t>),
Stream(Box<wasmtime_component_stream_type_t>),
ErrorContext,
}Variants§
Bool
S8
S16
S32
S64
U8
U16
U32
U64
F32
F64
Char
String
List(Box<wasmtime_component_list_type_t>)
Record(Box<wasmtime_component_record_type_t>)
Tuple(Box<wasmtime_component_tuple_type_t>)
Variant(Box<wasmtime_component_variant_type_t>)
Enum(Box<wasmtime_component_enum_type_t>)
Option(Box<wasmtime_component_option_type_t>)
Result(Box<wasmtime_component_result_type_t>)
Flags(Box<wasmtime_component_flags_type_t>)
Own(Box<wasmtime_component_resource_type_t>)
Borrow(Box<wasmtime_component_resource_type_t>)
Future(Box<wasmtime_component_future_type_t>)
Stream(Box<wasmtime_component_stream_type_t>)
ErrorContext
Trait Implementations§
Source§impl Clone for wasmtime_component_valtype_t
impl Clone for wasmtime_component_valtype_t
Source§fn clone(&self) -> wasmtime_component_valtype_t
fn clone(&self) -> wasmtime_component_valtype_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<Type> for wasmtime_component_valtype_t
impl From<Type> for wasmtime_component_valtype_t
Source§impl PartialEq for wasmtime_component_valtype_t
impl PartialEq for wasmtime_component_valtype_t
Source§fn eq(&self, other: &wasmtime_component_valtype_t) -> bool
fn eq(&self, other: &wasmtime_component_valtype_t) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for wasmtime_component_valtype_t
Auto Trait Implementations§
impl Freeze for wasmtime_component_valtype_t
impl RefUnwindSafe for wasmtime_component_valtype_t
impl Send for wasmtime_component_valtype_t
impl Sync for wasmtime_component_valtype_t
impl Unpin for wasmtime_component_valtype_t
impl UnwindSafe for wasmtime_component_valtype_t
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,
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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