Struct ucd_parse::CodepointRange
source · pub struct CodepointRange {
pub start: Codepoint,
pub end: Codepoint,
}
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§
source§impl Clone for CodepointRange
impl Clone for CodepointRange
source§fn clone(&self) -> CodepointRange
fn clone(&self) -> CodepointRange
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 CodepointRange
impl Debug for CodepointRange
source§impl Default for CodepointRange
impl Default for CodepointRange
source§fn default() -> CodepointRange
fn default() -> CodepointRange
Returns the “default value” for a type. Read more
source§impl Display for CodepointRange
impl Display for CodepointRange
source§impl FromStr for CodepointRange
impl FromStr for CodepointRange
source§impl Hash for CodepointRange
impl Hash for CodepointRange
source§impl IntoIterator for CodepointRange
impl IntoIterator for CodepointRange
source§impl Ord for CodepointRange
impl Ord for CodepointRange
source§fn cmp(&self, other: &CodepointRange) -> Ordering
fn cmp(&self, other: &CodepointRange) -> 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, Codepoint)> for CodepointRange
impl PartialEq<(Codepoint, Codepoint)> for CodepointRange
source§impl PartialEq<(u32, u32)> for CodepointRange
impl PartialEq<(u32, u32)> for CodepointRange
source§impl PartialEq for CodepointRange
impl PartialEq for CodepointRange
source§fn 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 ==
.source§impl PartialOrd for CodepointRange
impl PartialOrd for CodepointRange
source§fn partial_cmp(&self, other: &CodepointRange) -> Option<Ordering>
fn partial_cmp(&self, other: &CodepointRange) -> Option<Ordering>
1.0.0 · source§fn 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 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§
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