Trait mozjs::rust::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§

source§

impl<'a, T> IntoHandle for Handle<'a, T>

source§

impl<'a, T> IntoHandle for MutableHandle<'a, T>