pub enum NamePattern {
Wildcard,
Exact(String),
Prefix(String),
Suffix(String),
Contains(String),
}Expand description
Function name pattern.
Variants§
Wildcard
Match any name: *
Exact(String)
Exact name match: save_user
Prefix(String)
Prefix match: save*
Suffix(String)
Suffix match: *_user
Contains(String)
Contains match: *save*
Implementations§
Trait Implementations§
Source§impl Clone for NamePattern
impl Clone for NamePattern
Source§fn clone(&self) -> NamePattern
fn clone(&self) -> NamePattern
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 NamePattern
impl Debug for NamePattern
Source§impl PartialEq for NamePattern
impl PartialEq for NamePattern
impl Eq for NamePattern
impl StructuralPartialEq for NamePattern
Auto Trait Implementations§
impl Freeze for NamePattern
impl RefUnwindSafe for NamePattern
impl Send for NamePattern
impl Sync for NamePattern
impl Unpin for NamePattern
impl UnsafeUnpin for NamePattern
impl UnwindSafe for NamePattern
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