pub struct PersistArrayV2<T: Clone> {
pub data: Vec<T>,
pub versions: Vec<(usize, T)>,
pub current_version: usize,
}Fields§
§data: Vec<T>§versions: Vec<(usize, T)>§current_version: usizeImplementations§
Trait Implementations§
Source§impl<T: Clone + Clone> Clone for PersistArrayV2<T>
impl<T: Clone + Clone> Clone for PersistArrayV2<T>
Source§fn clone(&self) -> PersistArrayV2<T>
fn clone(&self) -> PersistArrayV2<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for PersistArrayV2<T>
impl<T> RefUnwindSafe for PersistArrayV2<T>where
T: RefUnwindSafe,
impl<T> Send for PersistArrayV2<T>where
T: Send,
impl<T> Sync for PersistArrayV2<T>where
T: Sync,
impl<T> Unpin for PersistArrayV2<T>where
T: Unpin,
impl<T> UnsafeUnpin for PersistArrayV2<T>
impl<T> UnwindSafe for PersistArrayV2<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