Trait New

Source
pub trait New: Manager {
    // Provided methods
    fn new_js_array(
        self,
        i: impl IntoIterator<IntoIter = impl ExactSizeIterator<Item = Any<Self::Dealloc>>>,
    ) -> Any<Self::Dealloc> { ... }
    fn new_js_string(
        self,
        s: impl IntoIterator<IntoIter = impl ExactSizeIterator<Item = u16>>,
    ) -> Any<Self::Dealloc> { ... }
    fn new_js_object(
        self,
        i: impl IntoIterator<IntoIter = impl ExactSizeIterator<Item = (JsStringRef<Self::Dealloc>, Any<Self::Dealloc>)>>,
    ) -> Any<Self::Dealloc> { ... }
}

Provided Methods§

Source

fn new_js_array( self, i: impl IntoIterator<IntoIter = impl ExactSizeIterator<Item = Any<Self::Dealloc>>>, ) -> Any<Self::Dealloc>

Source

fn new_js_string( self, s: impl IntoIterator<IntoIter = impl ExactSizeIterator<Item = u16>>, ) -> Any<Self::Dealloc>

Source

fn new_js_object( self, i: impl IntoIterator<IntoIter = impl ExactSizeIterator<Item = (JsStringRef<Self::Dealloc>, Any<Self::Dealloc>)>>, ) -> Any<Self::Dealloc>

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.

Implementors§

Source§

impl<M: Manager> New for M