pub struct GlobPatternBehavior { /* private fields */ }Expand description
Option-sensitive shell behavior enums reused by linter facts and rules. Option-sensitive pattern operators available to glob and shell-pattern facts.
Implementations§
Source§impl GlobPatternBehavior
impl GlobPatternBehavior
Sourcepub const fn from_parts(
extended_glob: PatternOperatorBehavior,
ksh_glob: PatternOperatorBehavior,
sh_glob: PatternOperatorBehavior,
) -> GlobPatternBehavior
pub const fn from_parts( extended_glob: PatternOperatorBehavior, ksh_glob: PatternOperatorBehavior, sh_glob: PatternOperatorBehavior, ) -> GlobPatternBehavior
Creates a pattern behavior from its operator-family states.
Sourcepub fn extended_glob(self) -> PatternOperatorBehavior
pub fn extended_glob(self) -> PatternOperatorBehavior
Returns whether zsh extended glob operators such as #, ~, and ^ are active.
Sourcepub fn ksh_glob(self) -> PatternOperatorBehavior
pub fn ksh_glob(self) -> PatternOperatorBehavior
Returns whether ksh-style glob operators such as @(...) are active.
Sourcepub fn sh_glob(self) -> PatternOperatorBehavior
pub fn sh_glob(self) -> PatternOperatorBehavior
Returns whether sh-compatible glob parsing is active.
Trait Implementations§
Source§impl Clone for GlobPatternBehavior
impl Clone for GlobPatternBehavior
Source§fn clone(&self) -> GlobPatternBehavior
fn clone(&self) -> GlobPatternBehavior
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GlobPatternBehavior
Source§impl Debug for GlobPatternBehavior
impl Debug for GlobPatternBehavior
impl Eq for GlobPatternBehavior
Source§impl PartialEq for GlobPatternBehavior
impl PartialEq for GlobPatternBehavior
impl StructuralPartialEq for GlobPatternBehavior
Auto Trait Implementations§
impl Freeze for GlobPatternBehavior
impl RefUnwindSafe for GlobPatternBehavior
impl Send for GlobPatternBehavior
impl Sync for GlobPatternBehavior
impl Unpin for GlobPatternBehavior
impl UnsafeUnpin for GlobPatternBehavior
impl UnwindSafe for GlobPatternBehavior
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