pub struct EncodingResult {
pub text: String,
pub detected_encoding: Option<EncodingType>,
pub replacement_count: usize,
pub confidence: f64,
}Expand description
Character encoding detection and conversion result
Fields§
§text: StringThe decoded text
detected_encoding: Option<EncodingType>Detected encoding (if any)
replacement_count: usizeNumber of replacement characters used
confidence: f64Confidence level (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for EncodingResult
impl Clone for EncodingResult
Source§fn clone(&self) -> EncodingResult
fn clone(&self) -> EncodingResult
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 EncodingResult
impl RefUnwindSafe for EncodingResult
impl Send for EncodingResult
impl Sync for EncodingResult
impl Unpin for EncodingResult
impl UnwindSafe for EncodingResult
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