#[non_exhaustive]pub struct NonZeroCharError;Expand description
Error returned from TryFrom<char>::try_from for NonZeroChar if the char was zero
Trait Implementations§
Source§impl Clone for NonZeroCharError
impl Clone for NonZeroCharError
Source§fn clone(&self) -> NonZeroCharError
fn clone(&self) -> NonZeroCharError
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 NonZeroCharError
impl Debug for NonZeroCharError
Source§impl Display for NonZeroCharError
impl Display for NonZeroCharError
Source§impl Error for NonZeroCharError
Available on crate feature std only.
impl Error for NonZeroCharError
Available on crate feature
std only.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 Hash for NonZeroCharError
impl Hash for NonZeroCharError
Source§impl Ord for NonZeroCharError
impl Ord for NonZeroCharError
Source§fn cmp(&self, other: &NonZeroCharError) -> Ordering
fn cmp(&self, other: &NonZeroCharError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NonZeroCharError
impl PartialEq for NonZeroCharError
Source§impl PartialOrd for NonZeroCharError
impl PartialOrd for NonZeroCharError
impl Copy for NonZeroCharError
impl Eq for NonZeroCharError
impl StructuralPartialEq for NonZeroCharError
Auto Trait Implementations§
impl Freeze for NonZeroCharError
impl RefUnwindSafe for NonZeroCharError
impl Send for NonZeroCharError
impl Sync for NonZeroCharError
impl Unpin for NonZeroCharError
impl UnwindSafe for NonZeroCharError
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