pub struct Utf8Classifier;Expand description
UTF-8 content classifier.
Returns Some(ContentType("text/utf-8")) if the raw bytes are valid
UTF-8, None otherwise. Priority 10 (lowest) — this is the fallback
when no other classifier matches.
Implementations§
Trait Implementations§
Source§impl ContentClassifier for Utf8Classifier
impl ContentClassifier for Utf8Classifier
Auto Trait Implementations§
impl Freeze for Utf8Classifier
impl RefUnwindSafe for Utf8Classifier
impl Send for Utf8Classifier
impl Sync for Utf8Classifier
impl Unpin for Utf8Classifier
impl UnsafeUnpin for Utf8Classifier
impl UnwindSafe for Utf8Classifier
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