Enum encoding_rs::BomHandling
source · pub(crate) enum BomHandling {
Off,
Sniff,
Remove,
}
Expand description
Communicate the BOM handling mode.
Variants§
Off
Don’t handle the BOM
Sniff
Sniff for UTF-8, UTF-16BE or UTF-16LE BOM
Remove
Remove the BOM only if it’s the BOM for this encoding
Trait Implementations§
source§impl Clone for BomHandling
impl Clone for BomHandling
source§fn clone(&self) -> BomHandling
fn clone(&self) -> BomHandling
Returns a copy 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 BomHandling
impl Debug for BomHandling
impl Copy for BomHandling
Auto Trait Implementations§
impl Freeze for BomHandling
impl RefUnwindSafe for BomHandling
impl Send for BomHandling
impl Sync for BomHandling
impl Unpin for BomHandling
impl UnwindSafe for BomHandling
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)