Enum custom_print::NeverError
source · pub enum NeverError {}
Expand description
A helper error type that cannot be instantiated.
This error is used in ConcatWriter
and ConcatTryWriter
there writeln!
is supposed to return Result
but the Result::Err
variant is not possible.
Trait Implementations§
source§impl Clone for NeverError
impl Clone for NeverError
source§fn clone(&self) -> NeverError
fn clone(&self) -> NeverError
Returns a copy 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 NeverError
impl Debug for NeverError
source§impl Display for NeverError
impl Display for NeverError
source§impl Error for NeverError
impl Error for NeverError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<NeverError> for NeverError
impl PartialEq<NeverError> for NeverError
source§fn eq(&self, other: &NeverError) -> bool
fn eq(&self, other: &NeverError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NeverError
impl Eq for NeverError
impl StructuralEq for NeverError
impl StructuralPartialEq for NeverError
Auto Trait Implementations§
impl RefUnwindSafe for NeverError
impl Send for NeverError
impl Sync for NeverError
impl Unpin for NeverError
impl UnwindSafe for NeverError
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