pub(crate) type RawMutableHandleObject = 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 RawMutableHandleObject {
pub _phantom_0: PhantomData<UnsafeCell<*mut JSObject>>,
pub ptr: *mut *mut JSObject,
}
Fields§
§_phantom_0: PhantomData<UnsafeCell<*mut JSObject>>
§ptr: *mut *mut JSObject
Implementations
Trait Implementations
Source§impl<T> Clone for MutableHandle<T>where
T: Clone,
impl<T> Clone for MutableHandle<T>where
T: Clone,
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 for MutableHandle<T>where
T: Debug,
impl<T> Debug for MutableHandle<T>where
T: Debug,
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> From<T> for MutableHandle<<T as IntoHandle>::Target>where
T: IntoMutableHandle,
impl<T> From<T> for MutableHandle<<T as IntoHandle>::Target>where
T: IntoMutableHandle,
Source§fn from(value: T) -> MutableHandle<<T as IntoHandle>::Target>
fn from(value: T) -> MutableHandle<<T as IntoHandle>::Target>
Converts to this type from the input type.