Trait FromAtom

Source
pub trait FromAtom<'js>: Sized {
    // Required method
    fn from_atom(atom: Atom<'js>) -> Result<Self, Error>;
}
Expand description

Trait for converting values from atoms.

Required Methods§

Source

fn from_atom(atom: Atom<'js>) -> Result<Self, Error>

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<'js> FromAtom<'js> for String

Implementors§

Source§

impl<'js> FromAtom<'js> for Atom<'js>

Source§

impl<'js> FromAtom<'js> for rquickjs::String<'js>

Source§

impl<'js> FromAtom<'js> for Value<'js>