[−][src]Struct persist_o_vec::Persist
Iteration will not always be in order
Methods
impl<T> Persist<T>
[src]
pub fn with_capacity(capacity: usize) -> Persist<T>
[src]
Allocate with capacity. This is the only way to create a new persistent vec.
Panics
Will panic if the selected capacity is larger than the ability for
Persist
to internally index in to
pub fn len(&self) -> usize
[src]
Returns the actual used length regardless of capacity
pub fn clear(&mut self)
[src]
pub fn get(&self, index: usize) -> Option<&T>
[src]
pub fn get_mut(&mut self, index: usize) -> Option<&mut T>
[src]
pub fn is_index_live(&self, index: usize) -> bool
[src]
pub fn push(&mut self, value: T)
[src]
pub fn pop(&mut self) -> Option<T>
[src]
pub fn remove(&mut self, index: usize) -> Option<T>
[src]
Remove the item at this index and return it if it exists. Does not shift elements after it to the left.
ⓘImportant traits for Iter<'a, T>pub fn iter(&self) -> Iter<T>
[src]
ⓘImportant traits for Iter<'a, T>
ⓘImportant traits for IterMut<'a, T>pub fn iter_mut(&mut self) -> IterMut<T>
[src]
ⓘImportant traits for IterMut<'a, T>
Trait Implementations
impl<T: Clone> Clone for Persist<T>
[src]
impl<T: Debug> Debug for Persist<T>
[src]
impl<T: Default> Default for Persist<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Persist<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Persist<T> where
T: Send,
T: Send,
impl<T> Sync for Persist<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Persist<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Persist<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,