pub struct Vec<T>(/* private fields */);
Implementations§
Source§impl<T: Send + Sync + 'static> Vec<T>
impl<T: Send + Sync + 'static> Vec<T>
pub fn new() -> Vec<T>
pub fn len(&self) -> usize
pub fn push(&mut self, item: T)
pub fn pop(&mut self) -> Option<Arc<T>>
pub fn get(&self, index: usize) -> Option<Arc<T>>
pub fn into_raw(self) -> *const Vec<T>
pub unsafe fn from_raw(ptr: *const Vec<T>) -> Vec<T>
pub fn to_vec(&self) -> RealVec<Arc<T>>
pub fn to_owned_vec(&self) -> RealVec<T::Owned>where
T: ToOwned,
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Vec<T>
impl<T> !RefUnwindSafe for Vec<T>
impl<T> Send for Vec<T>where
T: Send,
impl<T> Sync for Vec<T>where
T: Sync,
impl<T> Unpin for Vec<T>where
T: Unpin,
impl<T> !UnwindSafe for Vec<T>
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