pub struct EncodingInfo {
pub encoding: String,
pub confidence: f32,
pub has_bom: bool,
pub bom_type: Option<BomType>,
pub is_valid: bool,
}Expand description
Detected text encoding information with confidence scoring
Contains the results of encoding detection analysis including the detected encoding name, confidence level, and BOM information.
Fields§
§encoding: StringDetected encoding name (e.g., “UTF-8”, “Windows-1252”)
confidence: f32Confidence level (0.0 to 1.0)
has_bom: boolWhether a BOM was detected
bom_type: Option<BomType>BOM type if detected
is_valid: boolWhether the text appears to be valid in this encoding
Implementations§
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 moreSource§impl Debug for EncodingInfo
impl Debug for EncodingInfo
Source§impl PartialEq for EncodingInfo
impl PartialEq for EncodingInfo
impl StructuralPartialEq for EncodingInfo
Auto 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