pub struct ModulePattern {
pub path: String,
}Expand description
Module pattern: matches functions by module path.
Examples:
within(crate::api)- functions in the api modulewithin(crate::api::users)- functions in the users submodule
Fields§
§path: StringModule path to match (e.g., “crate::api”)
Implementations§
Trait Implementations§
Source§impl Clone for ModulePattern
impl Clone for ModulePattern
Source§fn clone(&self) -> ModulePattern
fn clone(&self) -> ModulePattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModulePattern
impl Debug for ModulePattern
Source§impl Matcher for ModulePattern
impl Matcher for ModulePattern
Source§fn matches(&self, function: &FunctionInfo) -> bool
fn matches(&self, function: &FunctionInfo) -> bool
Check if this pointcut matches the given function.
Source§impl PartialEq for ModulePattern
impl PartialEq for ModulePattern
impl Eq for ModulePattern
impl StructuralPartialEq for ModulePattern
Auto Trait Implementations§
impl Freeze for ModulePattern
impl RefUnwindSafe for ModulePattern
impl Send for ModulePattern
impl Sync for ModulePattern
impl Unpin for ModulePattern
impl UnsafeUnpin for ModulePattern
impl UnwindSafe for ModulePattern
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