Struct icu::experimental::transliterate::provider::RuleBasedTransliterator
source · pub struct RuleBasedTransliterator<'a> {
pub visibility: bool,
pub variable_table: VarTable<'a>,
pub filter: CodePointInversionList<'a>,
pub id_group_list: VarZeroVec<'a, VarZeroSlice<SimpleIdULE>>,
pub rule_group_list: VarZeroVec<'a, VarZeroSlice<RuleULE, Index32>, Index32>,
}
Expand description
The data struct representing UTS #35 transform rules.
Fields§
§visibility: bool
Whether this transliterator is accessible directly through the constructor. Hidden transliterators are intended as dependencies for visible transliterators, see, e.g., Devanagari-Latin
variable_table: VarTable<'a>
The VarTable
containing any special matchers (variables, UnicodeSets, …) used by this transliterator.
filter: CodePointInversionList<'a>
The filter for this transliterator. If there is none, the set of all code points is used.
id_group_list: VarZeroVec<'a, VarZeroSlice<SimpleIdULE>>
The list of transform rule groups this transliterator uses.
rule_group_list: VarZeroVec<'a, VarZeroSlice<RuleULE, Index32>, Index32>
The list of conversion rule groups this transliterator uses.
Implementations§
Trait Implementations§
source§impl<'a> Bake for RuleBasedTransliterator<'a>
impl<'a> Bake for RuleBasedTransliterator<'a>
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl<'a> BakeSize for RuleBasedTransliterator<'a>
impl<'a> BakeSize for RuleBasedTransliterator<'a>
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl<'a> Clone for RuleBasedTransliterator<'a>
impl<'a> Clone for RuleBasedTransliterator<'a>
source§fn clone(&self) -> RuleBasedTransliterator<'a>
fn clone(&self) -> RuleBasedTransliterator<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for RuleBasedTransliterator<'a>
impl<'a> Debug for RuleBasedTransliterator<'a>
source§impl<'de> Deserialize<'de> for RuleBasedTransliterator<'de>
impl<'de> Deserialize<'de> for RuleBasedTransliterator<'de>
source§fn deserialize<D>(
deserializer: D,
) -> Result<RuleBasedTransliterator<'de>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RuleBasedTransliterator<'de>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq for RuleBasedTransliterator<'a>
impl<'a> PartialEq for RuleBasedTransliterator<'a>
source§impl<'a> Serialize for RuleBasedTransliterator<'a>
impl<'a> Serialize for RuleBasedTransliterator<'a>
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<'a> Yokeable<'a> for RuleBasedTransliterator<'static>
impl<'a> Yokeable<'a> for RuleBasedTransliterator<'static>
source§type Output = RuleBasedTransliterator<'a>
type Output = RuleBasedTransliterator<'a>
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
source§fn transform_owned(
self,
) -> <RuleBasedTransliterator<'static> as Yokeable<'a>>::Output
fn transform_owned( self, ) -> <RuleBasedTransliterator<'static> as Yokeable<'a>>::Output
source§unsafe fn make(
this: <RuleBasedTransliterator<'static> as Yokeable<'a>>::Output,
) -> RuleBasedTransliterator<'static>
unsafe fn make( this: <RuleBasedTransliterator<'static> as Yokeable<'a>>::Output, ) -> RuleBasedTransliterator<'static>
This method can be used to cast away
Self<'a>
’s lifetime. Read moresource§fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut <RuleBasedTransliterator<'static> as Yokeable<'a>>::Output),
fn transform_mut<F>(&'a mut self, f: F)where
F: 'static + for<'b> FnOnce(&'b mut <RuleBasedTransliterator<'static> as Yokeable<'a>>::Output),
This method must cast
self
between &'a mut Self<'static>
and &'a mut Self<'a>
,
and pass it to f
. Read moresource§impl<'zf, 'zf_inner> ZeroFrom<'zf, RuleBasedTransliterator<'zf_inner>> for RuleBasedTransliterator<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, RuleBasedTransliterator<'zf_inner>> for RuleBasedTransliterator<'zf>
source§fn zero_from(
this: &'zf RuleBasedTransliterator<'zf_inner>,
) -> RuleBasedTransliterator<'zf>
fn zero_from( this: &'zf RuleBasedTransliterator<'zf_inner>, ) -> RuleBasedTransliterator<'zf>
Clone the other
C
into a struct that may retain references into C
.impl<'a> Eq for RuleBasedTransliterator<'a>
impl<'a> StructuralPartialEq for RuleBasedTransliterator<'a>
Auto Trait Implementations§
impl<'a> Freeze for RuleBasedTransliterator<'a>
impl<'a> RefUnwindSafe for RuleBasedTransliterator<'a>
impl<'a> Send for RuleBasedTransliterator<'a>
impl<'a> Sync for RuleBasedTransliterator<'a>
impl<'a> Unpin for RuleBasedTransliterator<'a>
impl<'a> UnwindSafe for RuleBasedTransliterator<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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