pub struct CharsetDetector { /* private fields */ }Implementations§
Source§impl CharsetDetector
impl CharsetDetector
pub fn new() -> CharsetDetector
pub fn feed_data(&mut self, data: impl AsRef<[u8]>) -> Result<(), Error>
pub fn reset(&mut self)
pub fn detect(self) -> Candidates
pub fn detect_data(data: impl AsRef<[u8]>) -> Result<Candidates, Error>
pub fn weigh_language( &mut self, language: &str, weight: f32, ) -> Result<(), Error>
pub fn set_default_weight(&mut self, weight: f32)
pub fn external_error_occurred(&self) -> bool
Trait Implementations§
Source§impl Default for CharsetDetector
impl Default for CharsetDetector
Auto Trait Implementations§
impl Freeze for CharsetDetector
impl RefUnwindSafe for CharsetDetector
impl !Send for CharsetDetector
impl !Sync for CharsetDetector
impl Unpin for CharsetDetector
impl UnsafeUnpin for CharsetDetector
impl UnwindSafe for CharsetDetector
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