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§
source§impl PartialEq for CaseFold
impl PartialEq for CaseFold
source§impl UcdFile for CaseFold
impl UcdFile for CaseFold
source§impl UcdFileByCodepoint for CaseFold
impl UcdFileByCodepoint for CaseFold
source§fn codepoints(&self) -> CodepointIter ⓘ
fn codepoints(&self) -> CodepointIter ⓘ
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§
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