Skip to main content

FromLive

Trait FromLive 

Source
pub trait FromLive: Sized {
    // Required method
    fn from_live(value: Value) -> Result<Self, String>;
}
Expand description

What a host function’s argument can be made from.

Required Methods§

Source

fn from_live(value: Value) -> Result<Self, String>

The value as this type, or why it cannot be.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FromLive for ()

Source§

impl FromLive for State<Value>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for String

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for bool

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for char

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for f32

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for f64

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for i8

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for i16

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for i32

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for i64

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for isize

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for u8

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for u16

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for u32

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for u64

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl FromLive for usize

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<A: FromLive, B: FromLive, C: FromLive, D: FromLive> FromLive for (A, B, C, D)

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<A: FromLive, B: FromLive, C: FromLive> FromLive for (A, B, C)

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<A: FromLive, B: FromLive> FromLive for (A, B)

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<A: IntoLive + 'static, B: IntoLive + 'static, C: IntoLive + 'static, R: FromLive + Fallback + 'static> FromLive for Box<dyn Fn(A, B, C) -> R>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<A: IntoLive + 'static, B: IntoLive + 'static, C: IntoLive + 'static, R: FromLive + Fallback + 'static> FromLive for Rc<dyn Fn(A, B, C) -> R>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<A: IntoLive + 'static, B: IntoLive + 'static, R: FromLive + Fallback + 'static> FromLive for Box<dyn Fn(A, B) -> R>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<A: IntoLive + 'static, B: IntoLive + 'static, R: FromLive + Fallback + 'static> FromLive for Rc<dyn Fn(A, B) -> R>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<A: IntoLive + 'static, R: FromLive + Fallback + 'static> FromLive for Box<dyn Fn(A) -> R>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<A: IntoLive + 'static, R: FromLive + Fallback + 'static> FromLive for Rc<dyn Fn(A) -> R>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<R: FromLive + Fallback + 'static> FromLive for Box<dyn Fn() -> R>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<R: FromLive + Fallback + 'static> FromLive for Rc<dyn Fn() -> R>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<T: FromLive + IntoLive + Clone + 'static> FromLive for Binding<T>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<T: FromLive + Ord> FromLive for BTreeSet<T>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<T: FromLive, E: FromLive> FromLive for Result<T, E>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<T: FromLive> FromLive for Option<T>

Source§

fn from_live(value: Value) -> Result<Self, String>

Source§

impl<T: FromLive> FromLive for Vec<T>

Source§

fn from_live(value: Value) -> Result<Self, String>

Implementors§