Struct relay_pattern::Patterns
source · pub struct Patterns { /* private fields */ }
Expand description
A collection of Pattern
s sharing the same configuration.
Implementations§
source§impl Patterns
impl Patterns
sourcepub fn empty() -> Self
pub fn empty() -> Self
Creates an empty Patterns
instance which never matches anything.
let patterns = Patterns::empty();
assert!(!patterns.is_match(""));
assert!(!patterns.is_match("foobar"));
sourcepub fn builder() -> PatternsBuilder
pub fn builder() -> PatternsBuilder
Returns a PatternsBuilder
.
Trait Implementations§
source§impl<C> AsRef<Patterns> for TypedPatterns<C>
impl<C> AsRef<Patterns> for TypedPatterns<C>
source§impl<C> From<TypedPatterns<C>> for Patterns
impl<C> From<TypedPatterns<C>> for Patterns
source§fn from(value: TypedPatterns<C>) -> Self
fn from(value: TypedPatterns<C>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Patterns
impl RefUnwindSafe for Patterns
impl Send for Patterns
impl Sync for Patterns
impl Unpin for Patterns
impl UnwindSafe for Patterns
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)