Struct querent_synapse::util::transactional_vec::TransactionalVec
source · pub struct TransactionalVec<T>where
T: Clone,{ /* private fields */ }
Implementations§
source§impl<T> TransactionalVec<T>where
T: Clone,
impl<T> TransactionalVec<T>where
T: Clone,
pub fn new() -> Self
sourcepub fn from(inner: Vec<T>) -> Self
pub fn from(inner: Vec<T>) -> Self
This is creating a new TransactionalVec from iterator and since it is initializing a new instance there is no need to track the initial items inside
pub fn inner(&self) -> &Vec<T>
pub fn len(&self) -> usize
pub fn clear(&mut self)
pub fn push(&mut self, value: T)
pub fn retain<F>(&mut self, f: F)
pub fn extend_from_slice(&mut self, other: &[T])
Trait Implementations§
source§impl<T> Clone for TransactionalVec<T>
impl<T> Clone for TransactionalVec<T>
source§fn clone(&self) -> TransactionalVec<T>
fn clone(&self) -> TransactionalVec<T>
Returns a copy 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 moresource§impl<T> Debug for TransactionalVec<T>
impl<T> Debug for TransactionalVec<T>
source§impl<T> PartialEq for TransactionalVec<T>
impl<T> PartialEq for TransactionalVec<T>
source§fn eq(&self, other: &TransactionalVec<T>) -> bool
fn eq(&self, other: &TransactionalVec<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> Transactional for TransactionalVec<T>where
T: Clone,
impl<T> Transactional for TransactionalVec<T>where
T: Clone,
impl<T> StructuralPartialEq for TransactionalVec<T>where
T: Clone,
Auto Trait Implementations§
impl<T> Freeze for TransactionalVec<T>
impl<T> RefUnwindSafe for TransactionalVec<T>where
T: RefUnwindSafe,
impl<T> Send for TransactionalVec<T>where
T: Send,
impl<T> Sync for TransactionalVec<T>where
T: Sync,
impl<T> Unpin for TransactionalVec<T>where
T: Unpin,
impl<T> UnwindSafe for TransactionalVec<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