[][src]Struct arrayvec::CapacityError

pub struct CapacityError<T = ()> { /* fields omitted */ }
[]

Error value indicating insufficient capacity

Methods

impl<T> CapacityError<T>[src][]

pub fn new(element: T) -> CapacityError<T>[src][]

Create a new CapacityError from element.

pub fn element(self) -> T[src][]

Extract the overflowing element

pub fn simplify(self) -> CapacityError[src][]

Convert into a CapacityError that does not carry an element.

Trait Implementations

impl<T: Copy> Copy for CapacityError<T>[src]

impl<T> Display for CapacityError<T>[src][+]

impl<T> Debug for CapacityError<T>[src][+]

impl<T: PartialEq> PartialEq<CapacityError<T>> for CapacityError<T>[src][+]

impl<T: Eq> Eq for CapacityError<T>[src]

impl<T: Ord> Ord for CapacityError<T>[src][+]

fn max(self, other: Self) -> Self
1.21.0
[src][]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src][]

Compares and returns the minimum of two values. Read more

impl<T: PartialOrd> PartialOrd<CapacityError<T>> for CapacityError<T>[src][+]

impl<T: Clone> Clone for CapacityError<T>[src][+]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> Send for CapacityError<T> where
    T: Send

impl<T> Sync for CapacityError<T> where
    T: Sync

Blanket Implementations

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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