pub enum NonEmptyError {
VecEmpty,
AlreadySingleton,
}Expand description
Errors that can occur when working with NonEmptyVec.
Variants§
VecEmpty
Encountered an empty Vec when it was expected to be non-empty.
AlreadySingleton
Attempted to remove an element from a singleton NonEmptyVec.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NonEmptyError
impl RefUnwindSafe for NonEmptyError
impl Send for NonEmptyError
impl Sync for NonEmptyError
impl Unpin for NonEmptyError
impl UnwindSafe for NonEmptyError
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