FromValue

Trait FromValue 

Source
pub trait FromValue<'gc>: Sized {
    // Required method
    fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>;
}

Required Methods§

Source

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'gc> FromValue<'gc> for bool

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for f32

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for f64

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for i8

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for i16

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for i32

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for i64

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for isize

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for u8

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for u16

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for u32

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for u64

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc> FromValue<'gc> for usize

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc, T: FromValue<'gc>> FromValue<'gc> for Option<T>

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Source§

impl<'gc, T: FromValue<'gc>> FromValue<'gc> for Vec<T>

Source§

fn from_value(value: Value<'gc>) -> Result<Self, Error<'gc>>

Implementors§

Source§

impl<'gc> FromValue<'gc> for Function<'gc>

Source§

impl<'gc> FromValue<'gc> for Value<'gc>

Source§

impl<'gc> FromValue<'gc> for AnyCallback<'gc>

Source§

impl<'gc> FromValue<'gc> for Closure<'gc>

Source§

impl<'gc> FromValue<'gc> for Str<'gc>

Source§

impl<'gc> FromValue<'gc> for Table<'gc>