pub enum FccConversionError {
TooLong,
TooShort,
InvalidChar,
}
Expand description
An enum representing a conversion (eg. string->fcc or format->fcc) error
Variants§
TooLong
Given string is > 4 bytes
TooShort
Given string is < 4 bytes
InvalidChar
Given string contains a non printable ascii char
Implementations§
Source§impl FccConversionError
impl FccConversionError
pub fn description(&self) -> &str
Trait Implementations§
Source§impl Clone for FccConversionError
impl Clone for FccConversionError
Source§fn clone(&self) -> FccConversionError
fn clone(&self) -> FccConversionError
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 FccConversionError
impl Debug for FccConversionError
Source§impl Display for FccConversionError
impl Display for FccConversionError
Source§impl Error for FccConversionError
impl Error for FccConversionError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
impl Copy for FccConversionError
Auto Trait Implementations§
impl Freeze for FccConversionError
impl RefUnwindSafe for FccConversionError
impl Send for FccConversionError
impl Sync for FccConversionError
impl Unpin for FccConversionError
impl UnwindSafe for FccConversionError
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