[][src]Struct lucet_runtime::UntypedRetVal

pub struct UntypedRetVal { /* fields omitted */ }

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.

Methods

impl UntypedRetVal[src]

pub fn as_bool(&self) -> bool[src]

pub fn as_ptr<T>(&self) -> *const T[src]

pub fn as_mut<T>(&self) -> *mut T[src]

impl UntypedRetVal[src]

pub fn as_f32(&self) -> f32[src]

impl UntypedRetVal[src]

pub fn as_f64(&self) -> f64[src]

impl UntypedRetVal[src]

pub fn as_u8(&self) -> u8[src]

impl UntypedRetVal[src]

pub fn as_u16(&self) -> u16[src]

impl UntypedRetVal[src]

pub fn as_u32(&self) -> u32[src]

impl UntypedRetVal[src]

pub fn as_u64(&self) -> u64[src]

impl UntypedRetVal[src]

pub fn as_i8(&self) -> i8[src]

impl UntypedRetVal[src]

pub fn as_i16(&self) -> i16[src]

impl UntypedRetVal[src]

pub fn as_i32(&self) -> i32[src]

impl UntypedRetVal[src]

pub fn as_i64(&self) -> i64[src]

Trait Implementations

impl Clone for UntypedRetVal[src]

impl Copy for UntypedRetVal[src]

impl Debug for UntypedRetVal[src]

impl Default for UntypedRetVal[src]

impl Display for UntypedRetVal[src]

impl From<RegVal> for UntypedRetVal[src]

impl<T> From<T> for UntypedRetVal where
    T: Into<Val>, 
[src]

impl UntypedRetValInternal for UntypedRetVal[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.