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§
Required Methods§
sourcefn into_handle(self) -> Handle<Self::Target>
fn into_handle(self) -> Handle<Self::Target>
Convert this object to a handle.