pub enum PathnameExpansionBehavior {
Disabled,
LiteralGlobsOnly,
LiteralGlobsOnlyOrDisabled,
SubstitutionResultsWhenUnquoted,
Ambiguous,
}Expand description
Option-sensitive shell behavior enums reused by linter facts and rules. Whether pathname expansion applies to literal globs and substitution results.
Variants§
Disabled
Pathname expansion does not apply.
LiteralGlobsOnly
Literal glob characters are active, but substitution results are not globbed.
LiteralGlobsOnlyOrDisabled
Runtime option state may enable literal glob expansion, but substitution results stay plain.
SubstitutionResultsWhenUnquoted
Unquoted substitution results can also trigger pathname expansion.
Ambiguous
Runtime option state may select either behavior family.
Implementations§
Source§impl PathnameExpansionBehavior
impl PathnameExpansionBehavior
Sourcepub fn literal_globs_can_expand(self) -> bool
pub fn literal_globs_can_expand(self) -> bool
Returns whether literal glob characters may trigger pathname expansion.
Sourcepub fn unquoted_substitution_results_can_glob(self) -> bool
pub fn unquoted_substitution_results_can_glob(self) -> bool
Returns whether unquoted substitution results may be interpreted as globs.
Trait Implementations§
Source§impl Clone for PathnameExpansionBehavior
impl Clone for PathnameExpansionBehavior
Source§fn clone(&self) -> PathnameExpansionBehavior
fn clone(&self) -> PathnameExpansionBehavior
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 PathnameExpansionBehavior
Source§impl Debug for PathnameExpansionBehavior
impl Debug for PathnameExpansionBehavior
impl Eq for PathnameExpansionBehavior
impl StructuralPartialEq for PathnameExpansionBehavior
Auto Trait Implementations§
impl Freeze for PathnameExpansionBehavior
impl RefUnwindSafe for PathnameExpansionBehavior
impl Send for PathnameExpansionBehavior
impl Sync for PathnameExpansionBehavior
impl Unpin for PathnameExpansionBehavior
impl UnsafeUnpin for PathnameExpansionBehavior
impl UnwindSafe for PathnameExpansionBehavior
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