Trait FromAtom

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

Trait for converting values from atoms.

Required Methods§

Source

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

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

Source§

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

Implementors§

Source§

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

Source§

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

Source§

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