Struct zalgo_codec_common::UnencodableByteError
source · pub struct UnencodableByteError { /* private fields */ }
Expand description
The error returned by the encoding functions if they encounter a byte they can not encode.
Implementations§
source§impl UnencodableByteError
impl UnencodableByteError
sourcepub fn line_number(&self) -> usize
pub fn line_number(&self) -> usize
Returns the number of the line on which the unencodable byte occured.
sourcepub fn unencodable_character_value(&self) -> u8
pub fn unencodable_character_value(&self) -> u8
Returns the byte value of the unencodable character. Note that this might not be the complete representation of the character in unicode, just the first byte of it.
Trait Implementations§
source§impl Debug for UnencodableByteError
impl Debug for UnencodableByteError
source§impl Display for UnencodableByteError
impl Display for UnencodableByteError
source§impl Error for UnencodableByteError
impl Error for UnencodableByteError
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<UnencodableByteError> for InvalidFileError
impl From<UnencodableByteError> for InvalidFileError
source§fn from(err: UnencodableByteError) -> Self
fn from(err: UnencodableByteError) -> Self
Converts to this type from the input type.