pub struct SyncVecImpl<V> { /* private fields */ }
Implementations
sourceimpl<V> SyncVecImpl<V>
impl<V> SyncVecImpl<V>
pub fn new_arc() -> Arc<Self>
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub async fn insert(&self, index: usize, v: V) -> Option<V>
pub async fn push(&self, v: V) -> Option<V>
pub fn push_mut(&mut self, v: V) -> Option<V>
pub async fn pop(&self) -> Option<V>
pub fn pop_mut(&mut self) -> Option<V>
pub async fn remove(&self, index: usize) -> Option<V>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub async fn clear(&self)
pub async fn shrink_to_fit(&self)
pub fn from(map: Vec<V>) -> Self
pub fn get(&self, index: usize) -> Option<&V>
pub unsafe fn get_uncheck(&self, index: usize) -> Option<&V>
pub async fn get_mut(&self, index: usize) -> Option<VecRefMut<'_, V>>
pub fn iter(&self) -> SliceIter<'_, V>
pub async fn iter_mut(&self) -> IterMut<'_, V>
pub fn into_iter(self) -> IntoIter<V>
pub async fn dirty_ref(&self) -> MutexGuard<'_, Vec<V>>
Trait Implementations
sourceimpl<V> Debug for SyncVecImpl<V> where
V: Debug,
impl<V> Debug for SyncVecImpl<V> where
V: Debug,
sourceimpl<'de, V> Deserialize<'de> for SyncVecImpl<V> where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for SyncVecImpl<V> where
V: Deserialize<'de>,
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<V> Drop for SyncVecImpl<V>
impl<V> Drop for SyncVecImpl<V>
sourceimpl<V> Index<usize> for SyncVecImpl<V>
impl<V> Index<usize> for SyncVecImpl<V>
sourceimpl<'a, V> IntoIterator for &'a SyncVecImpl<V>
impl<'a, V> IntoIterator for &'a SyncVecImpl<V>
sourceimpl<V> IntoIterator for SyncVecImpl<V>
impl<V> IntoIterator for SyncVecImpl<V>
sourceimpl<V> Serialize for SyncVecImpl<V> where
V: Serialize,
impl<V> Serialize for SyncVecImpl<V> where
V: Serialize,
impl<V> Send for SyncVecImpl<V>
this is safety, dirty mutex ensure
impl<V> Sync for SyncVecImpl<V>
this is safety, dirty mutex ensure
Auto Trait Implementations
impl<V> !RefUnwindSafe for SyncVecImpl<V>
impl<V> Unpin for SyncVecImpl<V> where
V: Unpin,
impl<V> !UnwindSafe for SyncVecImpl<V>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more