pub struct EmptyVecError;Expand description
Error returned when constructing a NonEmptyVec from an empty Vec.
Trait Implementations§
Source§impl Clone for EmptyVecError
impl Clone for EmptyVecError
Source§fn clone(&self) -> EmptyVecError
fn clone(&self) -> EmptyVecError
Returns a duplicate 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 Debug for EmptyVecError
impl Debug for EmptyVecError
Source§impl Display for EmptyVecError
impl Display for EmptyVecError
Source§impl Error for EmptyVecError
impl Error for EmptyVecError
1.30.0 · 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()
Source§impl PartialEq for EmptyVecError
impl PartialEq for EmptyVecError
impl Copy for EmptyVecError
impl Eq for EmptyVecError
impl StructuralPartialEq for EmptyVecError
Auto Trait Implementations§
impl Freeze for EmptyVecError
impl RefUnwindSafe for EmptyVecError
impl Send for EmptyVecError
impl Sync for EmptyVecError
impl Unpin for EmptyVecError
impl UnsafeUnpin for EmptyVecError
impl UnwindSafe for EmptyVecError
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