pub struct RomajiMatchConfigBuilder<'a, S: State = Empty> { /* private fields */ }
Available on crate feature
romaji
only.Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<'a, S: State> RomajiMatchConfigBuilder<'a, S>
impl<'a, S: State> RomajiMatchConfigBuilder<'a, S>
Sourcepub fn build(self) -> RomajiMatchConfig<'a>where
S: IsComplete,
pub fn build(self) -> RomajiMatchConfig<'a>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn romanizer(
self,
romanizer: &'a HepburnRomanizer,
) -> RomajiMatchConfigBuilder<'a, SetRomanizer<S>>where
S::Romanizer: IsUnset,
pub fn romanizer(
self,
romanizer: &'a HepburnRomanizer,
) -> RomajiMatchConfigBuilder<'a, SetRomanizer<S>>where
S::Romanizer: IsUnset,
Optional (Some / Option setters). Default: Cow::Owned(HepburnRomanizer::default())
.
Default: new()
on RomajiMatchConfigBuilder::build()
Sourcepub fn maybe_romanizer(
self,
value: Option<&'a HepburnRomanizer>,
) -> RomajiMatchConfigBuilder<'a, SetRomanizer<S>>where
S::Romanizer: IsUnset,
pub fn maybe_romanizer(
self,
value: Option<&'a HepburnRomanizer>,
) -> RomajiMatchConfigBuilder<'a, SetRomanizer<S>>where
S::Romanizer: IsUnset,
Optional (Some / Option setters). Default: Cow::Owned(HepburnRomanizer::default())
.
Default: new()
on RomajiMatchConfigBuilder::build()
Sourcepub fn case_insensitive(
self,
value: bool,
) -> RomajiMatchConfigBuilder<'a, SetCaseInsensitive<S>>where
S::CaseInsensitive: IsUnset,
pub fn case_insensitive(
self,
value: bool,
) -> RomajiMatchConfigBuilder<'a, SetCaseInsensitive<S>>where
S::CaseInsensitive: IsUnset,
Sourcepub fn maybe_case_insensitive(
self,
value: Option<bool>,
) -> RomajiMatchConfigBuilder<'a, SetCaseInsensitive<S>>where
S::CaseInsensitive: IsUnset,
pub fn maybe_case_insensitive(
self,
value: Option<bool>,
) -> RomajiMatchConfigBuilder<'a, SetCaseInsensitive<S>>where
S::CaseInsensitive: IsUnset,
Sourcepub fn allow_partial_pattern(
self,
value: bool,
) -> RomajiMatchConfigBuilder<'a, SetAllowPartialPattern<S>>where
S::AllowPartialPattern: IsUnset,
pub fn allow_partial_pattern(
self,
value: bool,
) -> RomajiMatchConfigBuilder<'a, SetAllowPartialPattern<S>>where
S::AllowPartialPattern: IsUnset,
Sourcepub fn maybe_allow_partial_pattern(
self,
value: Option<bool>,
) -> RomajiMatchConfigBuilder<'a, SetAllowPartialPattern<S>>where
S::AllowPartialPattern: IsUnset,
pub fn maybe_allow_partial_pattern(
self,
value: Option<bool>,
) -> RomajiMatchConfigBuilder<'a, SetAllowPartialPattern<S>>where
S::AllowPartialPattern: IsUnset,
Auto Trait Implementations§
impl<'a, S> Freeze for RomajiMatchConfigBuilder<'a, S>
impl<'a, S> RefUnwindSafe for RomajiMatchConfigBuilder<'a, S>
impl<'a, S> Send for RomajiMatchConfigBuilder<'a, S>
impl<'a, S> Sync for RomajiMatchConfigBuilder<'a, S>
impl<'a, S> Unpin for RomajiMatchConfigBuilder<'a, S>
impl<'a, S> UnwindSafe for RomajiMatchConfigBuilder<'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