Struct icu_casemapping::CaseMappingInternals
source · pub struct CaseMappingInternals<'data> {
pub trie: CodePointTrie<'data, CaseMappingData>,
pub exceptions: CaseMappingExceptions<'data>,
pub unfold: CaseMappingUnfoldData<'data>,
}
Expand description
CaseMappingInternals provides low-level access to the data necessary to convert characters and strings to upper, lower, or title case.
🚧 This code is experimental; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. It can be enabled with the "experimental" Cargo feature
of the icu meta-crate. Use with caution.
#2535
Fields§
§trie: CodePointTrie<'data, CaseMappingData>
TODO
exceptions: CaseMappingExceptions<'data>
TODO
unfold: CaseMappingUnfoldData<'data>
TODO
Implementations§
source§impl<'data> CaseMappingInternals<'data>
impl<'data> CaseMappingInternals<'data>
sourcepub fn try_from_icu(
trie_header: CodePointTrieHeader,
trie_index: &[u16],
trie_data: &[u16],
exceptions: &[u16],
unfold: &[u16]
) -> Result<Self, Error>
pub fn try_from_icu( trie_header: CodePointTrieHeader, trie_index: &[u16], trie_data: &[u16], exceptions: &[u16], unfold: &[u16] ) -> Result<Self, Error>
Creates a new CaseMappingInternals using data exported by the
Trait Implementations§
source§impl<'data> Bake for CaseMappingInternals<'data>
impl<'data> Bake for CaseMappingInternals<'data>
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl<'data> Clone for CaseMappingInternals<'data>
impl<'data> Clone for CaseMappingInternals<'data>
source§fn clone(&self) -> CaseMappingInternals<'data>
fn clone(&self) -> CaseMappingInternals<'data>
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<'data> Debug for CaseMappingInternals<'data>
impl<'data> Debug for CaseMappingInternals<'data>
source§impl<'de: 'data, 'data> Deserialize<'de> for CaseMappingInternals<'data>
impl<'de: 'data, 'data> Deserialize<'de> for CaseMappingInternals<'data>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'data> PartialEq<CaseMappingInternals<'data>> for CaseMappingInternals<'data>
impl<'data> PartialEq<CaseMappingInternals<'data>> for CaseMappingInternals<'data>
source§fn eq(&self, other: &CaseMappingInternals<'data>) -> bool
fn eq(&self, other: &CaseMappingInternals<'data>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'data> Serialize for CaseMappingInternals<'data>
impl<'data> Serialize for CaseMappingInternals<'data>
source§impl<'a> Yokeable<'a> for CaseMappingInternals<'static>
impl<'a> Yokeable<'a> for CaseMappingInternals<'static>
§type Output = CaseMappingInternals<'a>
type Output = CaseMappingInternals<'a>
This type MUST be
Self
with the 'static
replaced with 'a
, i.e. Self<'a>
source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
source§impl<'zf, 'zf_inner> ZeroFrom<'zf, CaseMappingInternals<'zf_inner>> for CaseMappingInternals<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, CaseMappingInternals<'zf_inner>> for CaseMappingInternals<'zf>
source§fn zero_from(this: &'zf CaseMappingInternals<'zf_inner>) -> Self
fn zero_from(this: &'zf CaseMappingInternals<'zf_inner>) -> Self
Clone the other
C
into a struct that may retain references into C
.