Struct icu::experimental::transliterate::provider::VarTable
source · pub struct VarTable<'a> {
pub compounds: VarZeroVec<'a, str, Index32>,
pub quantifiers_opt: VarZeroVec<'a, str, Index32>,
pub quantifiers_kleene: VarZeroVec<'a, str, Index32>,
pub quantifiers_kleene_plus: VarZeroVec<'a, str, Index32>,
pub segments: VarZeroVec<'a, SegmentULE, Index32>,
pub unicode_sets: VarZeroVec<'a, CodePointInversionListAndStringListULE, Index32>,
pub function_calls: VarZeroVec<'a, FunctionCallULE, Index32>,
pub max_left_placeholder_count: u16,
pub max_right_placeholder_count: u16,
}
Expand description
The special matchers and replacers used by this transliterator.
Fields§
§compounds: VarZeroVec<'a, str, Index32>
Variable definitions.
quantifiers_opt: VarZeroVec<'a, str, Index32>
Zero or one quantifiers.
quantifiers_kleene: VarZeroVec<'a, str, Index32>
Zero or more quantifiers.
quantifiers_kleene_plus: VarZeroVec<'a, str, Index32>
One or more quantifiers.
segments: VarZeroVec<'a, SegmentULE, Index32>
Segments.
unicode_sets: VarZeroVec<'a, CodePointInversionListAndStringListULE, Index32>
UnicodeSets. These are represented as a CodePointInversionListAndStringList
function_calls: VarZeroVec<'a, FunctionCallULE, Index32>
Function calls.
max_left_placeholder_count: u16
The maximum number of left placeholders (rest @@@ |
) in any rule.
max_right_placeholder_count: u16
The maximum number of right placeholders (| @@@ rest
) in any rule.
Implementations§
source§impl VarTable<'_>
impl VarTable<'_>
sourcepub const MAX_DYNAMIC: char = '\u{ffff0}'
pub const MAX_DYNAMIC: char = '\u{ffff0}'
The highest char
used for encoding dynamic (i.e., growing, non-reserved) specials.
sourcepub const RESERVED_PURE_CURSOR: char = '\u{ffffb}'
pub const RESERVED_PURE_CURSOR: char = '\u{ffffb}'
The char
that encodes a pure cursor, |
without @
.
sourcepub const RESERVED_ANCHOR_START: char = '\u{ffffc}'
pub const RESERVED_ANCHOR_START: char = '\u{ffffc}'
The char
that encodes a start anchor, ^
.
sourcepub const RESERVED_ANCHOR_END: char = '\u{ffffd}'
pub const RESERVED_ANCHOR_END: char = '\u{ffffd}'
The char
that encodes an end anchor, $
.
sourcepub const ENCODE_RANGE: RangeInclusive<char> = _
pub const ENCODE_RANGE: RangeInclusive<char> = _
The range used for encoded specials.
sourcepub const NUM_DYNAMIC: usize = 65_521usize
pub const NUM_DYNAMIC: usize = 65_521usize
The number of char
s available for encoding dynamic (i.e., growing, non-reserved) specials.
Trait Implementations§
source§impl<'de, 'a> Deserialize<'de> for VarTable<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for VarTable<'a>where
'de: 'a,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VarTable<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VarTable<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> Serialize for VarTable<'a>
impl<'a> Serialize for VarTable<'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
impl<'a> Eq for VarTable<'a>
impl<'a> StructuralPartialEq for VarTable<'a>
Auto Trait Implementations§
impl<'a> Freeze for VarTable<'a>
impl<'a> RefUnwindSafe for VarTable<'a>
impl<'a> Send for VarTable<'a>
impl<'a> Sync for VarTable<'a>
impl<'a> Unpin for VarTable<'a>
impl<'a> UnwindSafe for VarTable<'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