pub struct EmptyError<T> { /* private fields */ }
Implementations§
Source§impl<T> EmptyError<T>
impl<T> EmptyError<T>
pub fn into_empty(self) -> T
pub fn take(self) -> (T, EmptyError<()>)
pub fn take_and_drop(self) -> EmptyError<()>
pub fn as_empty(&self) -> &T
Source§impl<T> EmptyError<&T>
impl<T> EmptyError<&T>
pub fn into_owning(self) -> EmptyError<T::Owned>where
T: ToOwned,
Available on crate feature
alloc
only.Trait Implementations§
Source§impl<T: Clone> Clone for EmptyError<T>
impl<T: Clone> Clone for EmptyError<T>
Source§fn clone(&self) -> EmptyError<T>
fn clone(&self) -> EmptyError<T>
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<T> Debug for EmptyError<T>
impl<T> Debug for EmptyError<T>
Source§impl<T> Display for EmptyError<T>
impl<T> Display for EmptyError<T>
Source§impl<T> Error for EmptyError<T>
impl<T> Error for EmptyError<T>
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<T> From<EmptyError<T>> for CardinalityError<T>
Available on crate feature arrayvec
only.
impl<T> From<EmptyError<T>> for CardinalityError<T>
Available on crate feature
arrayvec
only.Source§fn from(error: EmptyError<T>) -> Self
fn from(error: EmptyError<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Hash> Hash for EmptyError<T>
impl<T: Hash> Hash for EmptyError<T>
Source§impl<T: PartialEq> PartialEq for EmptyError<T>
impl<T: PartialEq> PartialEq for EmptyError<T>
impl<T: Copy> Copy for EmptyError<T>
impl<T: Eq> Eq for EmptyError<T>
impl<T> StructuralPartialEq for EmptyError<T>
Auto Trait Implementations§
impl<T> Freeze for EmptyError<T>where
T: Freeze,
impl<T> RefUnwindSafe for EmptyError<T>where
T: RefUnwindSafe,
impl<T> Send for EmptyError<T>where
T: Send,
impl<T> Sync for EmptyError<T>where
T: Sync,
impl<T> Unpin for EmptyError<T>where
T: Unpin,
impl<T> UnwindSafe for EmptyError<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more