Struct mozjs::gc::collections::RootableVec
source · pub struct RootableVec<T: Traceable> {
v: Vec<T>,
}
Expand description
A vector of items to be rooted with RootedVec
.
Guaranteed to be empty when not rooted.
Fields§
§v: Vec<T>
Implementations§
source§impl<T: Traceable> RootableVec<T>
impl<T: Traceable> RootableVec<T>
sourcepub fn new_unrooted() -> RootableVec<T>
pub fn new_unrooted() -> RootableVec<T>
Create a vector of items of type T that can be rooted later.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for RootableVec<T>where T: RefUnwindSafe,
impl<T> Send for RootableVec<T>where T: Send,
impl<T> Sync for RootableVec<T>where T: Sync,
impl<T> Unpin for RootableVec<T>where T: Unpin,
impl<T> UnwindSafe for RootableVec<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