#[repr(C)]pub struct Rooted<T> {
pub stack: *mut *mut Rooted<*mut c_void>,
pub prev: *mut Rooted<*mut c_void>,
pub ptr: T,
}
Fields§
§stack: *mut *mut Rooted<*mut c_void>
§prev: *mut Rooted<*mut c_void>
§ptr: T
Implementations§
source§impl<T> Rooted<T>
impl<T> Rooted<T>
pub fn new_unrooted() -> Rooted<T>
unsafe fn get_rooting_context(cx: *mut JSContext) -> *mut RootingContext
unsafe fn get_root_stack(cx: *mut JSContext) -> *mut *mut Rooted<*mut c_void>where T: RootKind,
pub unsafe fn add_to_root_stack(&mut self, cx: *mut JSContext)where T: RootKind,
pub unsafe fn remove_from_root_stack(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Rooted<T>where T: RefUnwindSafe,
impl<T> !Send for Rooted<T>
impl<T> !Sync for Rooted<T>
impl<T> Unpin for Rooted<T>where T: Unpin,
impl<T> UnwindSafe for Rooted<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more