[−][src]Struct cursed::vec::Vec
Methods
impl<T: Send + Sync + 'static> Vec<T>
[src]
pub fn new() -> Vec<T>
[src]
pub fn len(&self) -> usize
[src]
pub fn push(&mut self, item: T)
[src]
pub fn pop(&mut self) -> Option<Arc<T>>
[src]
pub fn get(&self, index: usize) -> Option<Arc<T>>
[src]
pub fn into_raw(self) -> *const Vec<T>
[src]
pub unsafe fn from_raw(ptr: *const Vec<T>) -> Vec<T>
[src]
pub fn to_vec(&self) -> RealVec<Arc<T>>
[src]
pub fn to_owned_vec(&self) -> RealVec<T::Owned> where
T: ToOwned,
[src]
T: ToOwned,
Trait Implementations
impl<T: Debug> Debug for Vec<T>
[src]
impl<T: Send + Sync + 'static> From<Vec<T>> for Vec<T>
[src]
impl<'_, T: Send + Sync + 'static + Clone> From<&'_ [T]> for Vec<T>
[src]
impl<'_, T: Send + Sync + 'static + Clone> From<&'_ Vec<T>> for Vec<T>
[src]
impl<T: Clone> Clone for Vec<T>
[src]
Auto Trait Implementations
impl<T> Unpin for Vec<T> where
T: Unpin,
T: Unpin,
impl<T> Send for Vec<T> where
T: Send,
T: Send,
impl<T> Sync for Vec<T> where
T: Sync,
T: Sync,
impl<T> !RefUnwindSafe for Vec<T>
impl<T> !UnwindSafe for Vec<T>
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,