Struct ucd_parse::CodepointRange
source · [−]Expand description
A range of Unicode codepoints. The range is inclusive; both ends of the range are guaranteed to be valid codepoints.
Fields
start: Codepoint
The start of the codepoint range.
end: Codepoint
The end of the codepoint range.
Trait Implementations
sourceimpl Clone for CodepointRange
impl Clone for CodepointRange
sourcefn clone(&self) -> CodepointRange
fn clone(&self) -> CodepointRange
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 more
sourceimpl Debug for CodepointRange
impl Debug for CodepointRange
sourceimpl Default for CodepointRange
impl Default for CodepointRange
sourcefn default() -> CodepointRange
fn default() -> CodepointRange
Returns the “default value” for a type. Read more
sourceimpl Display for CodepointRange
impl Display for CodepointRange
sourceimpl FromStr for CodepointRange
impl FromStr for CodepointRange
sourceimpl Hash for CodepointRange
impl Hash for CodepointRange
sourceimpl IntoIterator for CodepointRange
impl IntoIterator for CodepointRange
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 CodepointRange
impl Ord for CodepointRange
sourcefn cmp(&self, other: &CodepointRange) -> Ordering
fn cmp(&self, other: &CodepointRange) -> 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 CodepointRange
impl PartialEq<(Codepoint, Codepoint)> for CodepointRange
sourceimpl PartialEq<(u32, u32)> for CodepointRange
impl PartialEq<(u32, u32)> for CodepointRange
sourceimpl PartialEq<CodepointRange> for CodepointRange
impl PartialEq<CodepointRange> for CodepointRange
sourcefn eq(&self, other: &CodepointRange) -> bool
fn eq(&self, other: &CodepointRange) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl PartialOrd<CodepointRange> for CodepointRange
impl PartialOrd<CodepointRange> for CodepointRange
sourcefn partial_cmp(&self, other: &CodepointRange) -> Option<Ordering>
fn partial_cmp(&self, other: &CodepointRange) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
impl Copy for CodepointRange
impl Eq for CodepointRange
impl StructuralEq for CodepointRange
impl StructuralPartialEq for CodepointRange
Auto Trait Implementations
impl RefUnwindSafe for CodepointRange
impl Send for CodepointRange
impl Sync for CodepointRange
impl Unpin for CodepointRange
impl UnwindSafe for CodepointRange
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