Struct relay_pattern::TypedPatternsBuilder
source · pub struct TypedPatternsBuilder<C> { /* private fields */ }
Implementations§
source§impl<C: PatternConfig> TypedPatternsBuilder<C>
impl<C: PatternConfig> TypedPatternsBuilder<C>
sourcepub fn add(&mut self, pattern: String) -> Result<&mut Self, Error>
pub fn add(&mut self, pattern: String) -> Result<&mut Self, Error>
Adds a pattern to the builder.
sourcepub fn build(self) -> TypedPatterns<C>
pub fn build(self) -> TypedPatterns<C>
Builds a TypedPatterns
from the contained patterns.
sourcepub fn take(&mut self) -> TypedPatterns<C>
pub fn take(&mut self) -> TypedPatterns<C>
Builds a TypedPatterns
from the contained patterns and clears the builder.
Auto Trait Implementations§
impl<C> Freeze for TypedPatternsBuilder<C>
impl<C> RefUnwindSafe for TypedPatternsBuilder<C>where
C: RefUnwindSafe,
impl<C> Send for TypedPatternsBuilder<C>where
C: Send,
impl<C> Sync for TypedPatternsBuilder<C>where
C: Sync,
impl<C> Unpin for TypedPatternsBuilder<C>where
C: Unpin,
impl<C> UnwindSafe for TypedPatternsBuilder<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