[][src]Struct balloc::Bvec

pub struct Bvec<B: AllocBound, T> { /* fields omitted */ }

Methods

impl<B: AllocBound, T> Bvec<B, T>[src]

pub fn with_capacity(bound: B, capacity: usize) -> Result<Self, AllocError>[src]

pub fn push(&mut self, value: T) -> Result<(), AllocError>[src]

impl<B: AllocBound, T: Clone> Bvec<B, T>[src]

pub fn from_elem(bound: B, elem: T, count: usize) -> Result<Self, AllocError>[src]

pub fn from_slice(bound: B, slice: &[T]) -> Result<Self, AllocError>[src]

Trait Implementations

impl<B: Clone + AllocBound, T: Clone> Clone for Bvec<B, T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<B: PartialEq + AllocBound, T: PartialEq> PartialEq<Bvec<B, T>> for Bvec<B, T>[src]

impl<B: Eq + AllocBound, T: Eq> Eq for Bvec<B, T>[src]

impl<B: AllocBound, T> Drop for Bvec<B, T>[src]

impl<B: Debug + AllocBound, T: Debug> Debug for Bvec<B, T>[src]

impl<B: Hash + AllocBound, T: Hash> Hash for Bvec<B, T>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<B: AllocBound, T> Deref for Bvec<B, T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<B: AllocBound, T, I> Index<I> for Bvec<B, T> where
    Vec<T>: Index<I>, 
[src]

type Output = <Vec<T> as Index<I>>::Output

The returned type after indexing.

impl<B: AllocBound, T, I> IndexMut<I> for Bvec<B, T> where
    Vec<T>: IndexMut<I> + Index<I>, 
[src]

impl<B: AllocBound, T> Borrow<[T]> for Bvec<B, T>[src]

impl<B: AllocBound, T> BorrowMut<[T]> for Bvec<B, T>[src]

Auto Trait Implementations

impl<B, T> Send for Bvec<B, T> where
    B: Send,
    T: Send

impl<B, T> Sync for Bvec<B, T> where
    B: Sync,
    T: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.