pub enum KeyedRosterError<K, const N: usize> {
Empty(Empty),
Overflow(Overflow),
DuplicateKeys(NonEmpty<DuplicateKey<K, N>, N>),
}Expand description
How construction of a caller-keyed roster refuses.
Variants§
Empty(Empty)
Nothing was offered.
Overflow(Overflow)
Too much was offered.
DuplicateKeys(NonEmpty<DuplicateKey<K, N>, N>)
One or more caller-declared keys occurred more than once.
Trait Implementations§
Source§impl<K: Clone, const N: usize> Clone for KeyedRosterError<K, N>
impl<K: Clone, const N: usize> Clone for KeyedRosterError<K, N>
Source§fn clone(&self) -> KeyedRosterError<K, N>
fn clone(&self) -> KeyedRosterError<K, N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K, const N: usize> Display for KeyedRosterError<K, N>
impl<K, const N: usize> Display for KeyedRosterError<K, N>
impl<K: Eq, const N: usize> Eq for KeyedRosterError<K, N>
Source§impl<K: Debug, const N: usize> Error for KeyedRosterError<K, N>
impl<K: Debug, const N: usize> Error for KeyedRosterError<K, N>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
impl<K: PartialEq, const N: usize> StructuralPartialEq for KeyedRosterError<K, N>
Auto Trait Implementations§
impl<K, const N: usize> Freeze for KeyedRosterError<K, N>
impl<K, const N: usize> RefUnwindSafe for KeyedRosterError<K, N>
impl<K, const N: usize> Send for KeyedRosterError<K, N>
impl<K, const N: usize> Sync for KeyedRosterError<K, N>
impl<K, const N: usize> Unpin for KeyedRosterError<K, N>
impl<K, const N: usize> UnsafeUnpin for KeyedRosterError<K, N>
impl<K, const N: usize> UnwindSafe for KeyedRosterError<K, N>
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