Enum precis_core::Codepoints
source · [−]pub enum Codepoints {
Single(u32),
Range(RangeInclusive<u32>),
}Expand description
A representation of either a single codepoint or a range of codepoints.
Variants
Single(u32)
A single codepoint.
Range(RangeInclusive<u32>)
A range of codepoints.
Trait Implementations
sourceimpl PartialEq<(u32, u32)> for Codepoints
impl PartialEq<(u32, u32)> for Codepoints
sourceimpl PartialEq<Codepoints> for (u32, u32)
impl PartialEq<Codepoints> for (u32, u32)
sourceimpl PartialEq<Codepoints> for Codepoints
impl PartialEq<Codepoints> for Codepoints
sourceimpl PartialEq<Codepoints> for RangeInclusive<u32>
impl PartialEq<Codepoints> for RangeInclusive<u32>
sourceimpl PartialEq<Codepoints> for u32
impl PartialEq<Codepoints> for u32
sourceimpl PartialEq<RangeInclusive<u32>> for Codepoints
impl PartialEq<RangeInclusive<u32>> for Codepoints
sourceimpl PartialEq<u32> for Codepoints
impl PartialEq<u32> for Codepoints
sourceimpl PartialOrd<Codepoints> for u32
impl PartialOrd<Codepoints> for u32
sourcefn partial_cmp(&self, other: &Codepoints) -> Option<Ordering>
fn partial_cmp(&self, other: &Codepoints) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
sourcefn lt(&self, other: &Codepoints) -> bool
fn lt(&self, other: &Codepoints) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
sourcefn le(&self, other: &Codepoints) -> bool
fn le(&self, other: &Codepoints) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourcefn gt(&self, other: &Codepoints) -> bool
fn gt(&self, other: &Codepoints) -> bool
This method tests greater than (for self and other) and is used by the > operator. Read more
sourcefn ge(&self, other: &Codepoints) -> bool
fn ge(&self, other: &Codepoints) -> bool
This method tests greater than or equal to (for self and other) and is used by the >=
operator. Read more
sourceimpl PartialOrd<u32> for Codepoints
impl PartialOrd<u32> for Codepoints
sourcefn partial_cmp(&self, other: &u32) -> Option<Ordering>
fn partial_cmp(&self, other: &u32) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
sourcefn lt(&self, other: &u32) -> bool
fn lt(&self, other: &u32) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
sourcefn le(&self, other: &u32) -> bool
fn le(&self, other: &u32) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for Codepoints
Auto Trait Implementations
impl RefUnwindSafe for Codepoints
impl Send for Codepoints
impl Sync for Codepoints
impl Unpin for Codepoints
impl UnwindSafe for Codepoints
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