[][src]Trait runestick::UnsafeToValue

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

Trait for converting types into values.

Associated Types

type Guard: 'static

The type used to guard the unsafe value conversion.

Loading content...

Required methods

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

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 &'_ 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...