Enum yeslogic_ucd_parse::Codepoints
source · [−]pub enum Codepoints {
Single(Codepoint),
Range(CodepointRange),
}
Expand description
A representation of either a single codepoint or a range of codepoints.
Variants
Single(Codepoint)
A single codepoint.
Range(CodepointRange)
A range of codepoints.
Trait Implementations
sourceimpl Clone for Codepoints
impl Clone for Codepoints
sourcefn clone(&self) -> Codepoints
fn clone(&self) -> Codepoints
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Codepoints
impl Debug for Codepoints
sourceimpl Default for Codepoints
impl Default for Codepoints
sourcefn default() -> Codepoints
fn default() -> Codepoints
Returns the “default value” for a type. Read more
sourceimpl Display for Codepoints
impl Display for Codepoints
sourceimpl FromStr for Codepoints
impl FromStr for Codepoints
sourceimpl Hash for Codepoints
impl Hash for Codepoints
sourceimpl IntoIterator for Codepoints
impl IntoIterator for Codepoints
type IntoIter = CodepointIter
type IntoIter = CodepointIter
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> CodepointIterⓘNotable traits for CodepointIterimpl Iterator for CodepointIter type Item = Codepoint;
fn into_iter(self) -> CodepointIterⓘNotable traits for CodepointIterimpl Iterator for CodepointIter type Item = Codepoint;
Creates an iterator from a value. Read more
sourceimpl Ord for Codepoints
impl Ord for Codepoints
sourcefn cmp(&self, other: &Codepoints) -> Ordering
fn cmp(&self, other: &Codepoints) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<(Codepoint, Codepoint)> for Codepoints
impl PartialEq<(Codepoint, Codepoint)> for Codepoints
sourceimpl PartialEq<Codepoints> for Codepoints
impl PartialEq<Codepoints> for Codepoints
sourcefn eq(&self, other: &Codepoints) -> bool
fn eq(&self, other: &Codepoints) -> bool
sourceimpl PartialOrd<Codepoints> for Codepoints
impl PartialOrd<Codepoints> for Codepoints
sourcefn partial_cmp(&self, other: &Codepoints) -> Option<Ordering>
fn partial_cmp(&self, other: &Codepoints) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Codepoints
impl Eq for Codepoints
impl StructuralEq for Codepoints
impl StructuralPartialEq 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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