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: Codepoint
The 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 for SpecialCaseMapping
impl PartialEq for SpecialCaseMapping
source§fn eq(&self, other: &SpecialCaseMapping) -> bool
fn eq(&self, other: &SpecialCaseMapping) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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.
impl Eq for SpecialCaseMapping
impl StructuralEq for SpecialCaseMapping
impl StructuralPartialEq for SpecialCaseMapping
Auto Trait Implementations§
impl RefUnwindSafe for SpecialCaseMapping
impl Send for SpecialCaseMapping
impl Sync for SpecialCaseMapping
impl Unpin for SpecialCaseMapping
impl UnwindSafe for SpecialCaseMapping
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