pub struct EncodingInfo {
pub is_utf8: bool,
pub has_bom: bool,
}Expand description
Information about the detected encoding.
Fields§
§is_utf8: boolWhether the data is valid UTF-8.
has_bom: boolWhether a UTF-8 BOM was present.
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 Copy for EncodingInfo
impl Eq 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