pub struct EncodingInfo {
pub charset: Charset,
pub confidence: f32,
pub bom_detected: bool,
pub sample_text: String,
}Expand description
Encoding detection result information
Fields§
§charset: CharsetDetected character set
confidence: f32Detection confidence (0.0-1.0)
bom_detected: boolWhether BOM was detected
sample_text: StringDecoded sample text
Trait Implementations§
Source§impl Clone for EncodingInfo
impl Clone for EncodingInfo
Source§fn clone(&self) -> EncodingInfo
fn clone(&self) -> EncodingInfo
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 EncodingInfo
impl RefUnwindSafe for EncodingInfo
impl Send for EncodingInfo
impl Sync for EncodingInfo
impl Unpin for EncodingInfo
impl UnwindSafe for EncodingInfo
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