Struct ringtail::buffers::atomic::Writer [−][src]
pub struct Writer<T> { /* fields omitted */ }
Writing half of an atomic buffer.
Trait Implementations
impl<T> Buffer<T> for Writer<T>
[src]
impl<T> Buffer<T> for Writer<T>
fn len(&self) -> usize
[src]
fn len(&self) -> usize
Returns the number of elements in the buffer.
fn capacity(&self) -> usize
[src]
fn capacity(&self) -> usize
Returns the current capacity of the buffer.
fn clear(&mut self)
[src]
fn clear(&mut self)
Clears all elements from the buffer and resets the length to zero.
fn is_empty(&self) -> bool
[src]
fn is_empty(&self) -> bool
Returns true
if the buffer is empty.
impl<T: Copy> WritableBuffer<T> for Writer<T>
[src]
impl<T: Copy> WritableBuffer<T> for Writer<T>
fn push(&mut self, src: &[T]) -> usize
[src]
fn push(&mut self, src: &[T]) -> usize
Copy the given elements and insert them into the back of the buffer. Read more
impl<T: Copy> Send for Writer<T>
[src]
impl<T: Copy> Send for Writer<T>