pub trait UnsafeToValue: Sized {
    type Guard: 'static;

    // Required method
    unsafe fn unsafe_to_value(self) -> VmResult<(Value, Self::Guard)>;
}
Expand description

Trait for converting types into values.

Required Associated Types§

source

type Guard: 'static

The type used to guard the unsafe value conversion.

Required Methods§

source

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

Convert into a value.

§Safety

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl UnsafeToValue for &ParseCharError

source§

impl UnsafeToValue for &Error

source§

impl UnsafeToValue for &ParseFloatError

source§

impl UnsafeToValue for &ParseIntError

source§

impl UnsafeToValue for &Utf8Error

source§

impl UnsafeToValue for &Error

source§

impl UnsafeToValue for &Error

source§

impl UnsafeToValue for &mut ParseCharError

source§

impl UnsafeToValue for &mut Error

source§

impl UnsafeToValue for &mut ParseFloatError

source§

impl UnsafeToValue for &mut ParseIntError

source§

impl UnsafeToValue for &mut Utf8Error

source§

impl UnsafeToValue for &mut Error

source§

impl UnsafeToValue for &mut Error

Implementors§