Enum broot::verb::FileTypeCondition
source · pub enum FileTypeCondition {
Any,
Directory,
File,
TextFile,
BinaryFile,
}
Variants§
Implementations§
source§impl FileTypeCondition
impl FileTypeCondition
pub fn is_default(&self) -> bool
pub fn accepts_path(self, path: &Path) -> bool
pub fn accepts_line(self, line: &TreeLine) -> bool
sourcepub fn accepts_selection_type(self, stype: SelectionType) -> bool
pub fn accepts_selection_type(self, stype: SelectionType) -> bool
a little clunky, should be used only on well defined cases, like documenting internals
Trait Implementations§
source§impl Clone for FileTypeCondition
impl Clone for FileTypeCondition
source§fn clone(&self) -> FileTypeCondition
fn clone(&self) -> FileTypeCondition
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 FileTypeCondition
impl Debug for FileTypeCondition
source§impl Default for FileTypeCondition
impl Default for FileTypeCondition
source§fn default() -> FileTypeCondition
fn default() -> FileTypeCondition
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FileTypeCondition
impl<'de> Deserialize<'de> for FileTypeCondition
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for FileTypeCondition
impl PartialEq for FileTypeCondition
source§fn eq(&self, other: &FileTypeCondition) -> bool
fn eq(&self, other: &FileTypeCondition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FileTypeCondition
impl Serialize for FileTypeCondition
impl Copy for FileTypeCondition
impl Eq for FileTypeCondition
impl StructuralPartialEq for FileTypeCondition
Auto Trait Implementations§
impl RefUnwindSafe for FileTypeCondition
impl Send for FileTypeCondition
impl Sync for FileTypeCondition
impl Unpin for FileTypeCondition
impl UnwindSafe for FileTypeCondition
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.