pub struct ExecutionPattern {
pub visibility: Option<Visibility>,
pub name: NamePattern,
pub return_type: Option<String>,
}Expand description
Execution pattern: matches function signatures.
Examples:
execution(pub fn *(..))- all public functionsexecution(fn save(..))- function named “save”execution(pub fn save*(..) -> Result<*, *>)- public functions starting with “save” returning Result
Fields§
§visibility: Option<Visibility>Visibility pattern (pub, pub(crate), etc.)
name: NamePatternFunction name pattern
return_type: Option<String>Return type pattern (simplified for now)
Implementations§
Trait Implementations§
Source§impl Clone for ExecutionPattern
impl Clone for ExecutionPattern
Source§fn clone(&self) -> ExecutionPattern
fn clone(&self) -> ExecutionPattern
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 ExecutionPattern
impl Debug for ExecutionPattern
Source§impl Matcher for ExecutionPattern
impl Matcher for ExecutionPattern
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 ExecutionPattern
impl PartialEq for ExecutionPattern
impl StructuralPartialEq for ExecutionPattern
Auto Trait Implementations§
impl Freeze for ExecutionPattern
impl RefUnwindSafe for ExecutionPattern
impl Send for ExecutionPattern
impl Sync for ExecutionPattern
impl Unpin for ExecutionPattern
impl UnsafeUnpin for ExecutionPattern
impl UnwindSafe for ExecutionPattern
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