Struct horde::sync_push_vec::Read[][src]

pub struct Read<'a, T> { /* fields omitted */ }

A handle to a SyncPushVec with read access.

It is acquired either by a pin, or by exclusive access to the vector.

Implementations

impl<'a, T> Read<'a, T>[src]

pub fn capacity(self) -> usize[src]

Returns the number of elements the map can hold without reallocating.

pub fn len(self) -> usize[src]

Returns the number of elements in the table.

pub fn as_slice(self) -> &'a [T][src]

Extracts a slice containing the entire vector.

Trait Implementations

impl<T> Clone for Read<'_, T>[src]

impl<T> Copy for Read<'_, T>[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for Read<'a, T>

impl<'a, T> Send for Read<'a, T> where
    T: Sync

impl<'a, T> Sync for Read<'a, T> where
    T: Sync

impl<'a, T> Unpin for Read<'a, T>

impl<'a, T> !UnwindSafe for Read<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.