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
sourceimpl Clone for SpecialCaseMapping
impl Clone for SpecialCaseMapping
sourcefn clone(&self) -> SpecialCaseMapping
fn clone(&self) -> SpecialCaseMapping
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SpecialCaseMapping
impl Debug for SpecialCaseMapping
sourceimpl Default for SpecialCaseMapping
impl Default for SpecialCaseMapping
sourcefn default() -> SpecialCaseMapping
fn default() -> SpecialCaseMapping
Returns the “default value” for a type. Read more
sourceimpl FromStr for SpecialCaseMapping
impl FromStr for SpecialCaseMapping
sourceimpl PartialEq<SpecialCaseMapping> for SpecialCaseMapping
impl PartialEq<SpecialCaseMapping> for SpecialCaseMapping
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SpecialCaseMapping) -> bool
fn ne(&self, other: &SpecialCaseMapping) -> bool
This method tests for !=
.
sourceimpl UcdFile for SpecialCaseMapping
impl UcdFile for SpecialCaseMapping
sourceimpl UcdFileByCodepoint for SpecialCaseMapping
impl UcdFileByCodepoint for SpecialCaseMapping
sourcefn codepoints(&self) -> CodepointIterⓘNotable traits for CodepointIterimpl Iterator for CodepointIter type Item = Codepoint;
fn codepoints(&self) -> CodepointIterⓘNotable traits for CodepointIterimpl Iterator for CodepointIter type Item = Codepoint;
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more