Trait mozjs_sys::jsgc::IntoHandle

source ·
pub trait IntoHandle {
    type Target;

    // Required method
    fn into_handle(self) -> Handle<Self::Target>;
}
Expand description

Trait for things that can be converted to handles For any type T: IntoHandle we have an implementation of From<T> for MutableHandle<T::Target>. This is a way round the orphan rule.

Required Associated Types§

source

type Target

The type of the handle

Required Methods§

source

fn into_handle(self) -> Handle<Self::Target>

Convert this object to a handle.

Implementors§