pub struct UntypedRetVal { /* private fields */ }
Expand description
A value returned by a guest function.
Since the Rust type system cannot know the type of the returned value, the user must use the
appropriate From
implementation or as_T
method.
Implementations§
Trait Implementations§
Source§impl Clone for UntypedRetVal
impl Clone for UntypedRetVal
Source§fn clone(&self) -> UntypedRetVal
fn clone(&self) -> UntypedRetVal
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 Debug for UntypedRetVal
impl Debug for UntypedRetVal
Source§impl Default for UntypedRetVal
impl Default for UntypedRetVal
Source§fn default() -> UntypedRetVal
fn default() -> UntypedRetVal
Returns the “default value” for a type. Read more
Source§impl Display for UntypedRetVal
impl Display for UntypedRetVal
Source§impl From<&UntypedRetVal> for bool
impl From<&UntypedRetVal> for bool
Source§fn from(retval: &UntypedRetVal) -> bool
fn from(retval: &UntypedRetVal) -> bool
Converts to this type from the input type.
Source§impl From<&UntypedRetVal> for f32
impl From<&UntypedRetVal> for f32
Source§fn from(retval: &UntypedRetVal) -> f32
fn from(retval: &UntypedRetVal) -> f32
Converts to this type from the input type.
Source§impl From<&UntypedRetVal> for f64
impl From<&UntypedRetVal> for f64
Source§fn from(retval: &UntypedRetVal) -> f64
fn from(retval: &UntypedRetVal) -> f64
Converts to this type from the input type.
Source§impl From<&UntypedRetVal> for i16
impl From<&UntypedRetVal> for i16
Source§fn from(retval: &UntypedRetVal) -> i16
fn from(retval: &UntypedRetVal) -> i16
Converts to this type from the input type.
Source§impl From<&UntypedRetVal> for i32
impl From<&UntypedRetVal> for i32
Source§fn from(retval: &UntypedRetVal) -> i32
fn from(retval: &UntypedRetVal) -> i32
Converts to this type from the input type.
Source§impl From<&UntypedRetVal> for i64
impl From<&UntypedRetVal> for i64
Source§fn from(retval: &UntypedRetVal) -> i64
fn from(retval: &UntypedRetVal) -> i64
Converts to this type from the input type.
Source§impl From<&UntypedRetVal> for i8
impl From<&UntypedRetVal> for i8
Source§fn from(retval: &UntypedRetVal) -> i8
fn from(retval: &UntypedRetVal) -> i8
Converts to this type from the input type.
Source§impl From<&UntypedRetVal> for u16
impl From<&UntypedRetVal> for u16
Source§fn from(retval: &UntypedRetVal) -> u16
fn from(retval: &UntypedRetVal) -> u16
Converts to this type from the input type.
Source§impl From<&UntypedRetVal> for u32
impl From<&UntypedRetVal> for u32
Source§fn from(retval: &UntypedRetVal) -> u32
fn from(retval: &UntypedRetVal) -> u32
Converts to this type from the input type.
Source§impl From<&UntypedRetVal> for u64
impl From<&UntypedRetVal> for u64
Source§fn from(retval: &UntypedRetVal) -> u64
fn from(retval: &UntypedRetVal) -> u64
Converts to this type from the input type.
Source§impl From<&UntypedRetVal> for u8
impl From<&UntypedRetVal> for u8
Source§fn from(retval: &UntypedRetVal) -> u8
fn from(retval: &UntypedRetVal) -> u8
Converts to this type from the input type.
Source§impl From<RegVal> for UntypedRetVal
impl From<RegVal> for UntypedRetVal
Source§fn from(reg: RegVal) -> UntypedRetVal
fn from(reg: RegVal) -> UntypedRetVal
Converts to this type from the input type.
Source§impl<T: Into<Val>> From<T> for UntypedRetVal
impl<T: Into<Val>> From<T> for UntypedRetVal
Source§fn from(v: T) -> UntypedRetVal
fn from(v: T) -> UntypedRetVal
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for bool
impl From<UntypedRetVal> for bool
Source§fn from(retval: UntypedRetVal) -> bool
fn from(retval: UntypedRetVal) -> bool
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for f32
impl From<UntypedRetVal> for f32
Source§fn from(retval: UntypedRetVal) -> f32
fn from(retval: UntypedRetVal) -> f32
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for f64
impl From<UntypedRetVal> for f64
Source§fn from(retval: UntypedRetVal) -> f64
fn from(retval: UntypedRetVal) -> f64
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for i16
impl From<UntypedRetVal> for i16
Source§fn from(retval: UntypedRetVal) -> i16
fn from(retval: UntypedRetVal) -> i16
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for i32
impl From<UntypedRetVal> for i32
Source§fn from(retval: UntypedRetVal) -> i32
fn from(retval: UntypedRetVal) -> i32
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for i64
impl From<UntypedRetVal> for i64
Source§fn from(retval: UntypedRetVal) -> i64
fn from(retval: UntypedRetVal) -> i64
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for i8
impl From<UntypedRetVal> for i8
Source§fn from(retval: UntypedRetVal) -> i8
fn from(retval: UntypedRetVal) -> i8
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for lucet_untyped_retval
impl From<UntypedRetVal> for lucet_untyped_retval
Source§fn from(retval: UntypedRetVal) -> lucet_untyped_retval
fn from(retval: UntypedRetVal) -> lucet_untyped_retval
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for u16
impl From<UntypedRetVal> for u16
Source§fn from(retval: UntypedRetVal) -> u16
fn from(retval: UntypedRetVal) -> u16
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for u32
impl From<UntypedRetVal> for u32
Source§fn from(retval: UntypedRetVal) -> u32
fn from(retval: UntypedRetVal) -> u32
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for u64
impl From<UntypedRetVal> for u64
Source§fn from(retval: UntypedRetVal) -> u64
fn from(retval: UntypedRetVal) -> u64
Converts to this type from the input type.
Source§impl From<UntypedRetVal> for u8
impl From<UntypedRetVal> for u8
Source§fn from(retval: UntypedRetVal) -> u8
fn from(retval: UntypedRetVal) -> u8
Converts to this type from the input type.
impl Copy for UntypedRetVal
Auto Trait Implementations§
impl Freeze for UntypedRetVal
impl RefUnwindSafe for UntypedRetVal
impl Send for UntypedRetVal
impl Sync for UntypedRetVal
impl Unpin for UntypedRetVal
impl UnwindSafe for UntypedRetVal
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