[][src]Trait runestick::UnsafeToValue

pub trait UnsafeToValue: Sized {
    type Guard: 'static;
    pub unsafe fn unsafe_to_value(self) -> Result<(Value, Self::Guard), VmError>;
}

Trait for converting types into values.

Associated Types

type Guard: 'static[src]

The type used to guard the unsafe value conversion.

Loading content...

Required methods

pub unsafe fn unsafe_to_value(self) -> Result<(Value, Self::Guard), VmError>[src]

Convert into a value.

Safety

The value returned must not be used after the guard associated with it has been dropped.

Loading content...

Implementations on Foreign Types

impl UnsafeToValue for &Error[src]

impl UnsafeToValue for &mut Error[src]

impl UnsafeToValue for &Error[src]

impl UnsafeToValue for &mut Error[src]

impl UnsafeToValue for &Error[src]

impl UnsafeToValue for &mut Error[src]

impl UnsafeToValue for &Ordering[src]

impl UnsafeToValue for &mut Ordering[src]

impl UnsafeToValue for &ParseCharError[src]

impl UnsafeToValue for &mut ParseCharError[src]

impl UnsafeToValue for &ParseFloatError[src]

impl UnsafeToValue for &mut ParseFloatError[src]

impl UnsafeToValue for &ParseIntError[src]

impl UnsafeToValue for &mut ParseIntError[src]

Loading content...

Implementors

impl<T> UnsafeToValue for T where
    T: ToValue
[src]

type Guard = ()

Loading content...