pub enum Codepoints {
Single(Codepoint),
Range(CodepointRange),
}
Expand description
A representation of either a single codepoint or a range of codepoints.
Variants§
Trait Implementations§
Source§impl Clone for Codepoints
impl Clone for Codepoints
Source§fn clone(&self) -> Codepoints
fn clone(&self) -> Codepoints
Returns a copy 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 Codepoints
impl Debug for Codepoints
Source§impl Default for Codepoints
impl Default for Codepoints
Source§fn default() -> Codepoints
fn default() -> Codepoints
Returns the “default value” for a type. Read more
Source§impl Display for Codepoints
impl Display for Codepoints
Source§impl FromStr for Codepoints
impl FromStr for Codepoints
Source§impl Hash for Codepoints
impl Hash for Codepoints
Source§impl IntoIterator for Codepoints
impl IntoIterator for Codepoints
Source§impl Ord for Codepoints
impl Ord for Codepoints
Source§fn cmp(&self, other: &Codepoints) -> Ordering
fn cmp(&self, other: &Codepoints) -> 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<Codepoint> for Codepoints
impl PartialEq<Codepoint> for Codepoints
Source§impl PartialEq<u32> for Codepoints
impl PartialEq<u32> for Codepoints
Source§impl PartialEq for Codepoints
impl PartialEq for Codepoints
Source§impl PartialOrd for Codepoints
impl PartialOrd for Codepoints
impl Copy for Codepoints
impl Eq for Codepoints
impl StructuralPartialEq for Codepoints
Auto Trait Implementations§
impl Freeze for Codepoints
impl RefUnwindSafe for Codepoints
impl Send for Codepoints
impl Sync for Codepoints
impl Unpin for Codepoints
impl UnwindSafe for Codepoints
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