pub enum ToolPattern {
Exact(String),
Glob(String),
Regex(Regex),
}Expand description
Variants§
Exact(String)
Match the tool name exactly.
Glob(String)
Match using glob syntax (* = any chars, ? = single char).
Regex(Regex)
Match using a regular expression.
Implementations§
Trait Implementations§
Source§impl Clone for ToolPattern
impl Clone for ToolPattern
Source§fn clone(&self) -> ToolPattern
fn clone(&self) -> ToolPattern
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 moreAuto Trait Implementations§
impl Freeze for ToolPattern
impl RefUnwindSafe for ToolPattern
impl Send for ToolPattern
impl Sync for ToolPattern
impl Unpin for ToolPattern
impl UnsafeUnpin for ToolPattern
impl UnwindSafe for ToolPattern
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