#[repr(C, u8)]pub enum wasmtime_component_val_t {
Show 22 variants
    Bool(bool),
    S8(i8),
    U8(u8),
    S16(i16),
    U16(u16),
    S32(i32),
    U32(u32),
    S64(i64),
    U64(u64),
    F32(f32),
    F64(f64),
    Char(u32),
    String(wasm_name_t),
    List(wasmtime_component_vallist_t),
    Record(wasmtime_component_valrecord_t),
    Tuple(wasmtime_component_valtuple_t),
    Variant(wasmtime_component_valvariant_t),
    Enum(wasm_name_t),
    Option(Option<Box<Self>>),
    Result(wasmtime_component_valresult_t),
    Flags(wasmtime_component_valflags_t),
    Resource(Box<wasmtime_component_resource_any_t>),
}Variants§
Bool(bool)
S8(i8)
U8(u8)
S16(i16)
U16(u16)
S32(i32)
U32(u32)
S64(i64)
U64(u64)
F32(f32)
F64(f64)
Char(u32)
String(wasm_name_t)
List(wasmtime_component_vallist_t)
Record(wasmtime_component_valrecord_t)
Tuple(wasmtime_component_valtuple_t)
Variant(wasmtime_component_valvariant_t)
Enum(wasm_name_t)
Option(Option<Box<Self>>)
Result(wasmtime_component_valresult_t)
Flags(wasmtime_component_valflags_t)
Resource(Box<wasmtime_component_resource_any_t>)
Trait Implementations§
Source§impl Clone for wasmtime_component_val_t
 
impl Clone for wasmtime_component_val_t
Source§fn clone(&self) -> wasmtime_component_val_t
 
fn clone(&self) -> wasmtime_component_val_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 Default for wasmtime_component_val_t
 
impl Default for wasmtime_component_val_t
Source§impl From<&Val> for wasmtime_component_val_t
 
impl From<&Val> for wasmtime_component_val_t
Source§impl From<&wasmtime_component_val_t> for Val
 
impl From<&wasmtime_component_val_t> for Val
Source§fn from(value: &wasmtime_component_val_t) -> Self
 
fn from(value: &wasmtime_component_val_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for wasmtime_component_val_t
impl RefUnwindSafe for wasmtime_component_val_t
impl !Send for wasmtime_component_val_t
impl !Sync for wasmtime_component_val_t
impl Unpin for wasmtime_component_val_t
impl UnwindSafe for wasmtime_component_val_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