pub enum EquivalenceType {
Type0,
Type1,
Type2,
Type3,
}Expand description
The “equivalence type” of the Unicode codepoint to the bytestring in the Encoding. The
equivalence types are defined by the Unicode consortium as such:
# The 1st column is the Unicode scalar value.
# The 2nd column is the codepage byte sequence.
# The 3rd column is the fallback indicator.
# The fallback indicator can have one of the following values:
# |0 for exact 1-1 roundtrip mapping
# |1 for the best fallback codepage byte sequence.
# |2 for the substitution character
# |3 for the best reverse fallback Unicode scaler valueVariants§
Trait Implementations§
Source§impl Clone for EquivalenceType
impl Clone for EquivalenceType
Source§fn clone(&self) -> EquivalenceType
fn clone(&self) -> EquivalenceType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EquivalenceType
impl Debug for EquivalenceType
Source§impl Ord for EquivalenceType
impl Ord for EquivalenceType
Source§fn cmp(&self, other: &EquivalenceType) -> Ordering
fn cmp(&self, other: &EquivalenceType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EquivalenceType
impl PartialEq for EquivalenceType
Source§impl PartialOrd for EquivalenceType
impl PartialOrd for EquivalenceType
impl Copy for EquivalenceType
impl Eq for EquivalenceType
impl StructuralPartialEq for EquivalenceType
Auto Trait Implementations§
impl Freeze for EquivalenceType
impl RefUnwindSafe for EquivalenceType
impl Send for EquivalenceType
impl Sync for EquivalenceType
impl Unpin for EquivalenceType
impl UnwindSafe for EquivalenceType
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