Struct ucd_parse::CaseFold
[−]
[src]
pub struct CaseFold {
pub codepoint: Codepoint,
pub status: CaseStatus,
pub mapping: Vec<Codepoint>,
}A single row in the CaseFolding.txt file.
The contents of CaseFolding.txt are a convenience derived from both
UnicodeData.txt and SpecialCasing.txt.
Note that a single codepoint may be mapped multiple times. In particular,
a single codepoint might have distinct CaseStatus::Simple and
CaseStatus::Full mappings.
Fields
codepoint: Codepoint
The codepoint that is being mapped.
status: CaseStatus
The case status of this mapping.
mapping: Vec<Codepoint>
The actual case mapping, which is more than one codepoint if this is a "full" mapping.
Trait Implementations
impl Clone for CaseFold[src]
fn clone(&self) -> CaseFold[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 CaseFold[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Default for CaseFold[src]
impl Eq for CaseFold[src]
impl PartialEq for CaseFold[src]
fn eq(&self, __arg_0: &CaseFold) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &CaseFold) -> bool[src]
This method tests for !=.
impl UcdFile for CaseFold[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 CaseFold[src]
ⓘImportant traits for CodepointIterfn codepoints(&self) -> CodepointIter[src]
Returns the codepoints associated with this record.