Struct comfy_wgpu::arrayvec::CapacityError
source · pub struct CapacityError<T = ()> { /* private fields */ }Expand description
Error value indicating insufficient capacity
Implementations§
source§impl<T> CapacityError<T>
impl<T> CapacityError<T>
sourcepub const fn new(element: T) -> CapacityError<T>
pub const fn new(element: T) -> CapacityError<T>
Create a new CapacityError from element.
sourcepub fn simplify(self) -> CapacityError<()>
pub fn simplify(self) -> CapacityError<()>
Convert into a CapacityError that does not carry an element.
Trait Implementations§
source§impl<T> Clone for CapacityError<T>where
T: Clone,
impl<T> Clone for CapacityError<T>where T: Clone,
source§fn clone(&self) -> CapacityError<T>
fn clone(&self) -> CapacityError<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T> Debug for CapacityError<T>
impl<T> Debug for CapacityError<T>
source§impl<T> Display for CapacityError<T>
impl<T> Display for CapacityError<T>
source§impl<T> Error for CapacityError<T>where
T: Any,
impl<T> Error for CapacityError<T>where T: Any,
Requires features="std".
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<T> Ord for CapacityError<T>where
T: Ord,
impl<T> Ord for CapacityError<T>where T: Ord,
source§fn cmp(&self, other: &CapacityError<T>) -> Ordering
fn cmp(&self, other: &CapacityError<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T> PartialEq<CapacityError<T>> for CapacityError<T>where
T: PartialEq<T>,
impl<T> PartialEq<CapacityError<T>> for CapacityError<T>where T: PartialEq<T>,
source§fn eq(&self, other: &CapacityError<T>) -> bool
fn eq(&self, other: &CapacityError<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<T> PartialOrd<CapacityError<T>> for CapacityError<T>where
T: PartialOrd<T>,
impl<T> PartialOrd<CapacityError<T>> for CapacityError<T>where T: PartialOrd<T>,
source§fn partial_cmp(&self, other: &CapacityError<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &CapacityError<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<T> Copy for CapacityError<T>where T: Copy,
impl<T> Eq for CapacityError<T>where T: Eq,
impl<T> StructuralEq for CapacityError<T>
impl<T> StructuralPartialEq for CapacityError<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for CapacityError<T>where T: RefUnwindSafe,
impl<T> Send for CapacityError<T>where T: Send,
impl<T> Sync for CapacityError<T>where T: Sync,
impl<T> Unpin for CapacityError<T>where T: Unpin,
impl<T> UnwindSafe for CapacityError<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.