pub struct Builder<'a> { /* private fields */ }Expand description
Builder for Extractor.
Implementations§
Source§impl<'a> Builder<'a>
impl<'a> Builder<'a>
Sourcepub fn build(self) -> Result<Extractor<'a>, BuildError>
pub fn build(self) -> Result<Extractor<'a>, BuildError>
Builds the Extractor, may fail if building the
prefilter fails.
Sourcepub fn push(self, os: Parser<'a>) -> Result<Self, ParseError>
pub fn push(self, os: Parser<'a>) -> Result<Self, ParseError>
Add a Parser configuration, fails if the regex can not
be parsed, or if Parser::os_replacement is missing and
the regex has no groups.
Sourcepub fn push_all<I>(self, ua: I) -> Result<Self, ParseError>where
I: IntoIterator<Item = Parser<'a>>,
pub fn push_all<I>(self, ua: I) -> Result<Self, ParseError>where
I: IntoIterator<Item = Parser<'a>>,
Bulk loading of parsers into the builder.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Builder<'a>
impl<'a> !RefUnwindSafe for Builder<'a>
impl<'a> Send for Builder<'a>
impl<'a> !Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> UnwindSafe for Builder<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more