Enum fif::parameters::ExtensionSet
source · pub enum ExtensionSet {
Images,
Audio,
Video,
Media,
Documents,
Text,
Archives,
System,
}
Expand description
Sets of extensions for use with Parameter’s -E
flag.
Variants§
Images
Extensions used for image file formats, such as png
, jpeg
, webp
, etc.
Audio
Extensions used for audio file formats, such as mp3
, ogg
, flac
, etc.
Video
Extensions used for video file formats, such as mkv
, mp4
, mov
, etc.
Media
Extensions used for media file formats. This acts as a combination of the Images, Audio and Video variants.
Documents
Extensions used for document file formats, such as pdf
, odt
, docx
, etc.
Text
Extensions used for text file formats, such as txt
, toml
, html
, etc.
Archives
Extensions used for archive file formats, such as zip
, zst
, gz
, etc.
System
Extensions used for system file formats, such as mbr
, crash
, dll
, etc.
Implementations§
source§impl ExtensionSet
impl ExtensionSet
sourcepub fn extensions(&self) -> Vec<&str>
pub fn extensions(&self) -> Vec<&str>
The list of known extensions for this ExtensionSet
.
Trait Implementations§
source§impl Clone for ExtensionSet
impl Clone for ExtensionSet
source§fn clone(&self) -> ExtensionSet
fn clone(&self) -> ExtensionSet
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 ExtensionSet
impl Debug for ExtensionSet
source§impl PartialEq for ExtensionSet
impl PartialEq for ExtensionSet
source§impl ValueEnum for ExtensionSet
impl ValueEnum for ExtensionSet
impl Copy for ExtensionSet
impl Eq for ExtensionSet
impl StructuralPartialEq for ExtensionSet
Auto Trait Implementations§
impl Freeze for ExtensionSet
impl RefUnwindSafe for ExtensionSet
impl Send for ExtensionSet
impl Sync for ExtensionSet
impl Unpin for ExtensionSet
impl UnwindSafe for ExtensionSet
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more