Struct ucd_parse::SpecialCaseMapping
source · pub struct SpecialCaseMapping {
pub codepoint: Codepoint,
pub lowercase: Vec<Codepoint>,
pub titlecase: Vec<Codepoint>,
pub uppercase: Vec<Codepoint>,
pub conditions: Vec<String>,
}Expand description
A single row in the SpecialCasing.txt file.
Note that a single codepoint may be mapped multiple times. In particular,
a single codepoint might have mappings based on distinct language sensitive
conditions (e.g., U+0307).
Fields§
§codepoint: CodepointThe codepoint that is being mapped.
lowercase: Vec<Codepoint>The lowercase mapping, which may be empty.
titlecase: Vec<Codepoint>The titlecase mapping, which may be empty.
uppercase: Vec<Codepoint>The uppercase mapping, which may be empty.
conditions: Vec<String>A list of language specific conditions, see SpecialCasing.txt for
more details.
Trait Implementations§
source§impl Clone for SpecialCaseMapping
impl Clone for SpecialCaseMapping
source§fn clone(&self) -> SpecialCaseMapping
fn clone(&self) -> SpecialCaseMapping
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 Debug for SpecialCaseMapping
impl Debug for SpecialCaseMapping
source§impl Default for SpecialCaseMapping
impl Default for SpecialCaseMapping
source§fn default() -> SpecialCaseMapping
fn default() -> SpecialCaseMapping
Returns the “default value” for a type. Read more
source§impl FromStr for SpecialCaseMapping
impl FromStr for SpecialCaseMapping
source§impl PartialEq<SpecialCaseMapping> for SpecialCaseMapping
impl PartialEq<SpecialCaseMapping> for SpecialCaseMapping
source§fn eq(&self, other: &SpecialCaseMapping) -> bool
fn eq(&self, other: &SpecialCaseMapping) -> bool
source§impl UcdFile for SpecialCaseMapping
impl UcdFile for SpecialCaseMapping
source§impl UcdFileByCodepoint for SpecialCaseMapping
impl UcdFileByCodepoint for SpecialCaseMapping
source§fn codepoints(&self) -> CodepointIter ⓘ
fn codepoints(&self) -> CodepointIter ⓘ
Returns the codepoints associated with this record.