pub struct GlobRule { /* private fields */ }Expand description
Rejects input containing shell glob characters.
Default denied: *, ?, [, ], {, }.
§Rationale
Glob characters cause unintended filename expansion in shell contexts:
rm *.log → deletes all .log files
cat file[0-9] → expands to matching filenames
echo {a,b,c} → brace expansionNote: { and } overlap with ShellMetaRule.
When both rules are active, each reports its own violation independently.
This is intentional — overlapping reports provide richer context about
why an input was rejected.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlobRule
impl RefUnwindSafe for GlobRule
impl Send for GlobRule
impl Sync for GlobRule
impl Unpin for GlobRule
impl UnsafeUnpin for GlobRule
impl UnwindSafe for GlobRule
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