Enum rg::args::EncodingMode
source · enum EncodingMode {
Some(Encoding),
Auto,
Disabled,
}
Expand description
Encoding mode the searcher will use.
Variants§
Some(Encoding)
Use an explicit encoding forcefully, but let BOM sniffing override it.
Auto
Use only BOM sniffing to auto-detect an encoding.
Disabled
Use no explicit encoding and disable all BOM sniffing. This will always result in searching the raw bytes, regardless of their true encoding.
Trait Implementations§
source§impl Clone for EncodingMode
impl Clone for EncodingMode
source§fn clone(&self) -> EncodingMode
fn clone(&self) -> EncodingMode
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 moreAuto Trait Implementations§
impl RefUnwindSafe for EncodingMode
impl Send for EncodingMode
impl Sync for EncodingMode
impl Unpin for EncodingMode
impl UnwindSafe for EncodingMode
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