Struct walker_common::compression::Detector
source · pub struct Detector<'a> {
pub file_name: Option<&'a str>,
pub disable_magic: bool,
pub ignore_file_extensions: HashSet<&'a str>,
pub fail_unknown_file_extension: bool,
}Fields§
§file_name: Option<&'a str>File name
disable_magic: boolDisable detection by magic bytes
ignore_file_extensions: HashSet<&'a str>File name extensions to ignore.
fail_unknown_file_extension: boolIf a file name is present, but the extension is unknown, report as an error
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Detector<'a>
impl<'a> RefUnwindSafe for Detector<'a>
impl<'a> Send for Detector<'a>
impl<'a> Sync for Detector<'a>
impl<'a> Unpin for Detector<'a>
impl<'a> UnwindSafe for Detector<'a>
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)