pub struct EncodedText {
pub text: String,
pub bytes_consumed: usize,
pub had_errors: bool,
pub replacements: usize,
}Expand description
Result of encoding a byte sequence to text.
Fields§
§text: StringThe decoded text.
bytes_consumed: usizeNumber of bytes consumed from input.
had_errors: boolWhether there were any encoding errors.
replacements: usizeNumber of replacement characters inserted.
Implementations§
Trait Implementations§
Source§impl Clone for EncodedText
impl Clone for EncodedText
Source§fn clone(&self) -> EncodedText
fn clone(&self) -> EncodedText
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 moreAuto Trait Implementations§
impl Freeze for EncodedText
impl RefUnwindSafe for EncodedText
impl Send for EncodedText
impl Sync for EncodedText
impl Unpin for EncodedText
impl UnwindSafe for EncodedText
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