Struct horde::sync_push_vec::Write [−][src]
pub struct Write<'a, T> { /* fields omitted */ }
A handle to a SyncPushVec with write access.
Implementations
impl<'a, T: Send + Clone> Write<'a, T>
[src]
impl<'a, T: Send + Clone> Write<'a, T>
[src]pub fn push(&mut self, value: T) -> (&'a T, usize)
[src]
Inserts a new element into the end of the table, and returns a refernce to it along with its index.
pub fn reserve(&mut self, additional: usize)
[src]
Reserves capacity for at least additional
more elements to be inserted
in the given vector. The collection may reserve more space to avoid
frequent reallocations. Does nothing if the capacity is already sufficient.
impl<T: Send> Write<'_, T>
[src]
impl<T: Send> Write<'_, T>
[src]pub fn replace<I: IntoIterator<Item = T>>(&mut self, iter: I, capacity: usize)
[src]
Replaces the content of the vector with the content of the iterator.
capacity
specifies the new capacity if it’s greater than the length of the iterator.
Trait Implementations
impl<T: Clone + Send> Extend<T> for Write<'_, T>
[src]
impl<T: Clone + Send> Extend<T> for Write<'_, T>
[src]fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
[src]
fn extend_one(&mut self, item: T)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for Write<'a, T>
impl<'a, T> !RefUnwindSafe for Write<'a, T>
impl<'a, T> !UnwindSafe for Write<'a, T>
impl<'a, T> !UnwindSafe for Write<'a, T>