Struct relay_pattern::TypedPatterns
source · pub struct TypedPatterns<C = DefaultPatternConfig> { /* private fields */ }
Expand description
Patterns
with a compile time configured PatternConfig
.
Implementations§
source§impl<C: PatternConfig> TypedPatterns<C>
impl<C: PatternConfig> TypedPatterns<C>
pub fn builder() -> TypedPatternsBuilder<C>
Methods from Deref<Target = Patterns>§
Trait Implementations§
source§impl<C> AsRef<Patterns> for TypedPatterns<C>
impl<C> AsRef<Patterns> for TypedPatterns<C>
source§impl<C> Clone for TypedPatterns<C>
impl<C> Clone for TypedPatterns<C>
source§impl<C> Debug for TypedPatterns<C>
impl<C> Debug for TypedPatterns<C>
source§impl<C: PatternConfig> Default for TypedPatterns<C>
impl<C: PatternConfig> Default for TypedPatterns<C>
source§impl<C> Deref for TypedPatterns<C>
impl<C> Deref for TypedPatterns<C>
source§impl<'de, C: PatternConfig> Deserialize<'de> for TypedPatterns<C>
impl<'de, C: PatternConfig> Deserialize<'de> for TypedPatterns<C>
Deserializes patterns from a sequence of strings.
Invalid patterns are ignored while deserializing.
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<C: PatternConfig, const N: usize> From<[String; N]> for TypedPatterns<C>
impl<C: PatternConfig, const N: usize> From<[String; N]> for TypedPatterns<C>
source§impl<C: PatternConfig> From<String> for TypedPatterns<C>
impl<C: PatternConfig> From<String> 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.
source§impl<C: PatternConfig> From<Vec<String>> for TypedPatterns<C>
impl<C: PatternConfig> From<Vec<String>> for TypedPatterns<C>
source§impl<C: PatternConfig> FromIterator<String> for TypedPatterns<C>
impl<C: PatternConfig> FromIterator<String> for TypedPatterns<C>
Creates Patterns
from an iterator of strings.
Invalid patterns are ignored.
source§impl<C> PartialEq for TypedPatterns<C>
impl<C> PartialEq for TypedPatterns<C>
Auto Trait Implementations§
impl<C> Freeze for TypedPatterns<C>
impl<C> RefUnwindSafe for TypedPatterns<C>where
C: RefUnwindSafe,
impl<C> Send for TypedPatterns<C>where
C: Send,
impl<C> Sync for TypedPatterns<C>where
C: Sync,
impl<C> Unpin for TypedPatterns<C>where
C: Unpin,
impl<C> UnwindSafe for TypedPatterns<C>where
C: UnwindSafe,
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
)