Struct js::jsapi::MutableHandle  
                   
                       [−]
                   
               [src]
#[repr(C)]pub struct MutableHandle<T> { pub _base: MutableHandleBase<T>, pub ptr: *mut T, }
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 MutableHandleBase
Fields
_base: MutableHandleBase<T>
                           
                           
                           
                           ptr: *mut T
                           
                    Methods
impl<T> MutableHandle<T>[src]
pub unsafe fn from_marked_location(ptr: *mut T) -> MutableHandle<T>[src]
pub fn handle(&self) -> Handle<T>[src]
pub fn get(&self) -> T where
    T: Copy, [src]
T: Copy,
pub fn set(&self, v: T) where
    T: Copy, [src]
T: Copy,
Trait Implementations
impl<T: Debug> Debug for MutableHandle<T>[src]
impl<T: Copy> Copy for MutableHandle<T>[src]
impl<T: Clone> Clone for MutableHandle<T>[src]
fn clone(&self) -> MutableHandle<T>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<T> Deref for MutableHandle<T>[src]
type Target = T
The resulting type after dereferencing.
fn deref<'a>(&'a self) -> &'a T[src]
Dereferences the value.