pub enum NonEmptyError {
Empty(Empty),
Overflow(Overflow),
}Expand description
How construction of a required non-empty collection refuses.
Variants§
Trait Implementations§
Source§impl Clone for NonEmptyError
impl Clone for NonEmptyError
Source§fn clone(&self) -> NonEmptyError
fn clone(&self) -> NonEmptyError
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 moreimpl Copy for NonEmptyError
Source§impl Debug for NonEmptyError
impl Debug for NonEmptyError
Source§impl Display for NonEmptyError
impl Display for NonEmptyError
impl Eq for NonEmptyError
Source§impl Error for NonEmptyError
impl Error for NonEmptyError
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 From<Empty> for NonEmptyError
impl From<Empty> for NonEmptyError
Source§impl From<NonEmptyError> for TrailError
impl From<NonEmptyError> for TrailError
Source§fn from(refusal: NonEmptyError) -> Self
fn from(refusal: NonEmptyError) -> Self
Converts to this type from the input type.
Source§impl From<Overflow> for NonEmptyError
impl From<Overflow> for NonEmptyError
Source§impl Hash for NonEmptyError
impl Hash for NonEmptyError
Source§impl PartialEq for NonEmptyError
impl PartialEq for NonEmptyError
impl StructuralPartialEq for NonEmptyError
Auto Trait Implementations§
impl Freeze for NonEmptyError
impl RefUnwindSafe for NonEmptyError
impl Send for NonEmptyError
impl Sync for NonEmptyError
impl Unpin for NonEmptyError
impl UnsafeUnpin 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