pub struct Matcher { /* private fields */ }Implementations§
Source§impl Matcher
impl Matcher
Sourcepub fn load() -> Self
pub fn load() -> Self
Load allowlist patterns from trusted home config only
(~/.claude/settings.json). A project’s .claude/settings.json is
intentionally not read: it lives in the working tree the agent edits, and
the harness applies its own project settings directly. See
docs/design/trusted-customization.md.
pub fn matches_cmd(&self, cmd: &Cmd) -> bool
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for Matcher
impl RefUnwindSafe for Matcher
impl Send for Matcher
impl Sync for Matcher
impl Unpin for Matcher
impl UnsafeUnpin for Matcher
impl UnwindSafe for Matcher
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