pub struct CaseFold {
pub codepoint: Codepoint,
pub status: CaseStatus,
pub mapping: Vec<Codepoint>,
}
Expand description
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
sourceimpl UcdFile for CaseFold
impl UcdFile for CaseFold
sourceimpl UcdFileByCodepoint for CaseFold
impl UcdFileByCodepoint for CaseFold
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 CaseFold
impl StructuralEq for CaseFold
impl StructuralPartialEq for CaseFold
Auto Trait Implementations
impl RefUnwindSafe for CaseFold
impl Send for CaseFold
impl Sync for CaseFold
impl Unpin for CaseFold
impl UnwindSafe for CaseFold
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