Struct broot::pattern::InputPattern
source · [−]Expand description
wraps both
- the “pattern” (which may be used to filter and rank file entries)
- the source raw string which was used to build it and which may be put back in the input.
Fields
raw: String
pattern: Pattern
Implementations
sourceimpl InputPattern
impl InputPattern
pub fn none() -> Self
pub fn new(
raw: String,
parts_expr: &BeTree<PatternOperator, PatternParts>,
con: &AppContext
) -> Result<Self, PatternError>
pub fn is_none(&self) -> bool
pub fn is_some(&self) -> bool
pub fn as_option(self) -> Option<Self>
sourcepub fn tree_to_preview(&self) -> Self
pub fn tree_to_preview(&self) -> Self
from a pattern used to filter a tree, build a pattern which would make sense to filter a previewed file
Trait Implementations
sourceimpl Clone for InputPattern
impl Clone for InputPattern
sourcefn clone(&self) -> InputPattern
fn clone(&self) -> InputPattern
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InputPattern
impl Debug for InputPattern
sourceimpl PartialEq<InputPattern> for InputPattern
impl PartialEq<InputPattern> for InputPattern
Auto Trait Implementations
impl RefUnwindSafe for InputPattern
impl Send for InputPattern
impl Sync for InputPattern
impl Unpin for InputPattern
impl UnwindSafe for InputPattern
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more