pub struct GcVec<'gc, T>where
T: GcSync<'gc>,{ /* private fields */ }Implementations§
Source§impl<'gc, T> GcVec<'gc, T>where
T: GcSync<'gc>,
impl<'gc, T> GcVec<'gc, T>where
T: GcSync<'gc>,
pub fn new(mu: &'gc Mutator<'_>) -> GcVec<'gc, T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn cap(&self) -> usize
pub fn get_idx(&self, idx: usize) -> Option<T>
pub fn set(&self, mu: &'gc Mutator<'_>, value: T, idx: usize)
pub fn push(&self, mu: &'gc Mutator<'_>, value: T)
pub fn pop(&self) -> Option<T>
Trait Implementations§
Auto Trait Implementations§
impl<'gc, T> !Freeze for GcVec<'gc, T>
impl<'gc, T> !Send for GcVec<'gc, T>
impl<'gc, T> !Sync for GcVec<'gc, T>
impl<'gc, T> RefUnwindSafe for GcVec<'gc, T>where
T: RefUnwindSafe,
impl<'gc, T> Unpin for GcVec<'gc, T>
impl<'gc, T> UnsafeUnpin for GcVec<'gc, T>
impl<'gc, T> UnwindSafe for GcVec<'gc, T>where
T: RefUnwindSafe,
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