Struct byte_unit::UnitParseError
source · pub struct UnitParseError {
pub character: char,
pub expected_characters: &'static [char],
pub also_expect_no_character: bool,
}
Expand description
The error type returned when parsing units.
Fields§
§character: char
§expected_characters: &'static [char]
§also_expect_no_character: bool
Trait Implementations§
source§impl Clone for UnitParseError
impl Clone for UnitParseError
source§fn clone(&self) -> UnitParseError
fn clone(&self) -> UnitParseError
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 UnitParseError
impl Debug for UnitParseError
source§impl Display for UnitParseError
impl Display for UnitParseError
source§impl Error for UnitParseError
Available on (crate features byte
or bit
) and crate feature std
only.
impl Error for UnitParseError
Available on (crate features
byte
or bit
) and crate feature std
only.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 From<UnitParseError> for ParseError
Available on crate features byte
or bit
only.
impl From<UnitParseError> for ParseError
Available on crate features
byte
or bit
only.source§fn from(error: UnitParseError) -> Self
fn from(error: UnitParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for UnitParseError
impl Send for UnitParseError
impl Sync for UnitParseError
impl Unpin for UnitParseError
impl UnwindSafe for UnitParseError
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