pub struct MatcherBuilder { /* private fields */ }Expand description
Builds a Matcher and gives it the pin sources its rules name.
Implementations§
Source§impl MatcherBuilder
impl MatcherBuilder
Sourcepub fn pin_source(
self,
name: impl Into<String>,
source: Arc<dyn PinSource>,
) -> Self
pub fn pin_source( self, name: impl Into<String>, source: Arc<dyn PinSource>, ) -> Self
Gives the rules that say pins = "<name>" this source.
Sourcepub fn build(self) -> Result<Matcher, MatcherError>
pub fn build(self) -> Result<Matcher, MatcherError>
Checks the rules and compiles them.
§Errors
As Matcher::new, and a rule naming a pin source that was not given.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MatcherBuilder
impl !UnwindSafe for MatcherBuilder
impl Freeze for MatcherBuilder
impl Send for MatcherBuilder
impl Sync for MatcherBuilder
impl Unpin for MatcherBuilder
impl UnsafeUnpin for MatcherBuilder
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