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<'_>

source

pub const BASE: char = '\u{f0000}'

The lowest char used for encoding specials.

source

pub const MAX_DYNAMIC: char = '\u{ffff0}'

The highest char used for encoding dynamic (i.e., growing, non-reserved) specials.

source

pub const RESERVED_PURE_CURSOR: char = '\u{ffffb}'

The char that encodes a pure cursor, | without @.

source

pub const RESERVED_ANCHOR_START: char = '\u{ffffc}'

The char that encodes a start anchor, ^.

source

pub const RESERVED_ANCHOR_END: char = '\u{ffffd}'

The char that encodes an end anchor, $.

source

pub const ENCODE_RANGE: RangeInclusive<char> = _

The range used for encoded specials.

source

pub const NUM_DYNAMIC: usize = 65_521usize

The number of chars available for encoding dynamic (i.e., growing, non-reserved) specials.

Trait Implementations§

source§

impl<'a> Bake for VarTable<'a>

source§

fn bake(&self, env: &CrateEnv) -> TokenStream

Returns a TokenStream that would evaluate to self. Read more
source§

impl<'a> BakeSize for VarTable<'a>

source§

fn borrows_size(&self) -> usize

Returns the size
source§

impl<'a> Clone for VarTable<'a>

source§

fn clone(&self) -> VarTable<'a>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Debug for VarTable<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

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>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<'a> PartialEq for VarTable<'a>

source§

fn eq(&self, other: &VarTable<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

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,

Serialize this value into the given Serde serializer. Read more
source§

impl<'zf, 'zf_inner> ZeroFrom<'zf, VarTable<'zf_inner>> for VarTable<'zf>

source§

fn zero_from(this: &'zf VarTable<'zf_inner>) -> VarTable<'zf>

Clone the other C into a struct that may retain references into C.
source§

impl<'a> Eq for VarTable<'a>

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T
where T: Send + Sync,