pub struct EncodeTextError {
pub char_index: usize,
pub character: char,
pub encoding: TextEncoding,
}Expand description
Error returned when strict text encoding would lose information.
Fields§
§char_index: usizeCharacter position (by char index) that could not be encoded.
character: charUnicode character that is not representable in the target encoding.
encoding: TextEncodingTarget encoding that rejected the character.
Trait Implementations§
Source§impl Clone for EncodeTextError
impl Clone for EncodeTextError
Source§fn clone(&self) -> EncodeTextError
fn clone(&self) -> EncodeTextError
Returns a duplicate 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 EncodeTextError
impl Debug for EncodeTextError
Source§impl Display for EncodeTextError
impl Display for EncodeTextError
Source§impl Error for EncodeTextError
impl Error for EncodeTextError
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 PartialEq for EncodeTextError
impl PartialEq for EncodeTextError
impl Eq for EncodeTextError
impl StructuralPartialEq for EncodeTextError
Auto Trait Implementations§
impl Freeze for EncodeTextError
impl RefUnwindSafe for EncodeTextError
impl Send for EncodeTextError
impl Sync for EncodeTextError
impl Unpin for EncodeTextError
impl UnwindSafe for EncodeTextError
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