Type Alias mozjs_sys::jsapi::JS::MutableHandleObject
source · pub type MutableHandleObject = MutableHandle<*mut JSObject>;
Expand description
Similar to a handle, but the underlying storage can be changed. This is useful for outparams.
If you want to add additional methods to MutableHandle for a specific
specialization, define a MutableHandleOperations
Aliased Type§
struct MutableHandleObject {
pub ptr: *mut *mut JSObject,
pub _phantom_0: PhantomData<UnsafeCell<*mut JSObject>>,
}
Fields§
§ptr: *mut *mut JSObject
§_phantom_0: PhantomData<UnsafeCell<*mut JSObject>>
Implementations§
Trait Implementations§
source§impl<T: Clone> Clone for MutableHandle<T>
impl<T: Clone> Clone for MutableHandle<T>
source§fn clone(&self) -> MutableHandle<T>
fn clone(&self) -> MutableHandle<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for MutableHandle<T>
impl<T: Debug> Debug for MutableHandle<T>
source§impl<T> Deref for MutableHandle<T>
impl<T> Deref for MutableHandle<T>
source§impl<T> DerefMut for MutableHandle<T>
impl<T> DerefMut for MutableHandle<T>
source§impl<T: IntoMutableHandle> From<T> for MutableHandle<T::Target>
impl<T: IntoMutableHandle> From<T> for MutableHandle<T::Target>
source§impl<T: PartialEq> PartialEq<MutableHandle<T>> for MutableHandle<T>
impl<T: PartialEq> PartialEq<MutableHandle<T>> for MutableHandle<T>
source§fn eq(&self, other: &MutableHandle<T>) -> bool
fn eq(&self, other: &MutableHandle<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.