pub struct PatternAnalyzerBuilder<'a, S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<'a, S: State> PatternAnalyzerBuilder<'a, S>
impl<'a, S: State> PatternAnalyzerBuilder<'a, S>
Sourcepub fn build(self) -> PatternAnalyzer<'a>where
S: IsComplete,
pub fn build(self) -> PatternAnalyzer<'a>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn is_pattern_partial(
self,
value: bool,
) -> PatternAnalyzerBuilder<'a, SetIsPatternPartial<S>>where
S::IsPatternPartial: IsUnset,
pub fn is_pattern_partial(
self,
value: bool,
) -> PatternAnalyzerBuilder<'a, SetIsPatternPartial<S>>where
S::IsPatternPartial: IsUnset,
Sourcepub fn maybe_is_pattern_partial(
self,
value: Option<bool>,
) -> PatternAnalyzerBuilder<'a, SetIsPatternPartial<S>>where
S::IsPatternPartial: IsUnset,
pub fn maybe_is_pattern_partial(
self,
value: Option<bool>,
) -> PatternAnalyzerBuilder<'a, SetIsPatternPartial<S>>where
S::IsPatternPartial: IsUnset,
Sourcepub fn pinyin(
self,
value: &'a PinyinMatchConfig<'a>,
) -> PatternAnalyzerBuilder<'a, SetPinyin<S>>where
S::Pinyin: IsUnset,
pub fn pinyin(
self,
value: &'a PinyinMatchConfig<'a>,
) -> PatternAnalyzerBuilder<'a, SetPinyin<S>>where
S::Pinyin: IsUnset,
Sourcepub fn maybe_pinyin(
self,
value: Option<&'a PinyinMatchConfig<'a>>,
) -> PatternAnalyzerBuilder<'a, SetPinyin<S>>where
S::Pinyin: IsUnset,
pub fn maybe_pinyin(
self,
value: Option<&'a PinyinMatchConfig<'a>>,
) -> PatternAnalyzerBuilder<'a, SetPinyin<S>>where
S::Pinyin: IsUnset,
Sourcepub fn romaji(
self,
value: &'a RomajiMatchConfig<'a>,
) -> PatternAnalyzerBuilder<'a, SetRomaji<S>>where
S::Romaji: IsUnset,
pub fn romaji(
self,
value: &'a RomajiMatchConfig<'a>,
) -> PatternAnalyzerBuilder<'a, SetRomaji<S>>where
S::Romaji: IsUnset,
Sourcepub fn maybe_romaji(
self,
value: Option<&'a RomajiMatchConfig<'a>>,
) -> PatternAnalyzerBuilder<'a, SetRomaji<S>>where
S::Romaji: IsUnset,
pub fn maybe_romaji(
self,
value: Option<&'a RomajiMatchConfig<'a>>,
) -> PatternAnalyzerBuilder<'a, SetRomaji<S>>where
S::Romaji: IsUnset,
Auto Trait Implementations§
impl<'a, S> Freeze for PatternAnalyzerBuilder<'a, S>
impl<'a, S> RefUnwindSafe for PatternAnalyzerBuilder<'a, S>
impl<'a, S> Send for PatternAnalyzerBuilder<'a, S>
impl<'a, S> Sync for PatternAnalyzerBuilder<'a, S>
impl<'a, S> Unpin for PatternAnalyzerBuilder<'a, S>
impl<'a, S> UnwindSafe for PatternAnalyzerBuilder<'a, S>
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