Struct arrayvec::CapacityError [−][src]
pub struct CapacityError<T = ()> { /* fields omitted */ }
Error value indicating insufficient capacity
Implementations
impl<T> CapacityError<T>
[src]
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: Clone> Clone for CapacityError<T>
[src]
impl<T: Clone> Clone for CapacityError<T>
[src]fn clone(&self) -> CapacityError<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Ord> Ord for CapacityError<T>
[src]
impl<T: Ord> Ord for CapacityError<T>
[src]impl<T: PartialEq> PartialEq<CapacityError<T>> for CapacityError<T>
[src]
impl<T: PartialEq> PartialEq<CapacityError<T>> for CapacityError<T>
[src]fn eq(&self, other: &CapacityError<T>) -> bool
[src]
fn ne(&self, other: &CapacityError<T>) -> bool
[src]
impl<T: PartialOrd> PartialOrd<CapacityError<T>> for CapacityError<T>
[src]
impl<T: PartialOrd> PartialOrd<CapacityError<T>> for CapacityError<T>
[src]fn partial_cmp(&self, other: &CapacityError<T>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl<T: Copy> Copy for CapacityError<T>
[src]
impl<T: Eq> Eq for CapacityError<T>
[src]
impl<T> StructuralEq for CapacityError<T>
[src]
impl<T> StructuralPartialEq for CapacityError<T>
[src]
Auto Trait Implementations
impl<T> Send for CapacityError<T> where
T: Send,
T: Send,
impl<T> Sync for CapacityError<T> where
T: Sync,
T: Sync,
impl<T> Unpin for CapacityError<T> where
T: Unpin,
T: Unpin,