pub struct ConversionResult {
pub converted_text: String,
pub original_encoding: Charset,
pub target_encoding: Charset,
pub bytes_processed: usize,
pub had_errors: bool,
pub error_count: usize,
}Expand description
Result of an encoding conversion operation.
Contains the converted text along with metadata about the conversion process, including error information and encoding details.
Fields§
§converted_text: StringThe converted text in the target encoding
original_encoding: CharsetThe original character encoding that was detected
target_encoding: CharsetThe target encoding for conversion
bytes_processed: usizeNumber of bytes processed during conversion
had_errors: boolWhether any errors occurred during conversion
error_count: usizeTotal number of conversion errors encountered
Trait Implementations§
Source§impl Clone for ConversionResult
impl Clone for ConversionResult
Source§fn clone(&self) -> ConversionResult
fn clone(&self) -> ConversionResult
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 ConversionResult
impl RefUnwindSafe for ConversionResult
impl Send for ConversionResult
impl Sync for ConversionResult
impl Unpin for ConversionResult
impl UnwindSafe for ConversionResult
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