Struct ucd_parse::SpecialCaseMapping
[−]
[src]
pub struct SpecialCaseMapping {
pub codepoint: Codepoint,
pub lowercase: Vec<Codepoint>,
pub titlecase: Vec<Codepoint>,
pub uppercase: Vec<Codepoint>,
pub conditions: Vec<String>,
}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
impl Clone for SpecialCaseMapping[src]
fn clone(&self) -> SpecialCaseMapping[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for SpecialCaseMapping[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Default for SpecialCaseMapping[src]
fn default() -> SpecialCaseMapping[src]
Returns the "default value" for a type. Read more
impl Eq for SpecialCaseMapping[src]
impl PartialEq for SpecialCaseMapping[src]
fn eq(&self, __arg_0: &SpecialCaseMapping) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &SpecialCaseMapping) -> bool[src]
This method tests for !=.
impl UcdFile for SpecialCaseMapping[src]
fn relative_file_path() -> &'static Path[src]
The file path corresponding to this file, relative to the UCD directory. Read more
fn file_path<P: AsRef<Path>>(ucd_dir: P) -> PathBuf[src]
The full file path corresponding to this file given the UCD directory path. Read more
fn from_dir<P: AsRef<Path>>(
ucd_dir: P
) -> Result<UcdLineParser<File, Self>, Error>[src]
ucd_dir: P
) -> Result<UcdLineParser<File, Self>, Error>
Create an iterator over each record in this UCD file. Read more
impl UcdFileByCodepoint for SpecialCaseMapping[src]
ⓘImportant traits for CodepointIterfn codepoints(&self) -> CodepointIter[src]
Returns the codepoints associated with this record.