pub struct UnicodeRange {
pub start: u32,
pub end: u32,
}
Expand description
Unicode range representation for font matching
Fields§
§start: u32
§end: u32
Implementations§
Source§impl UnicodeRange
impl UnicodeRange
pub fn contains(&self, c: char) -> bool
pub fn overlaps(&self, other: &UnicodeRange) -> bool
pub fn is_subset_of(&self, other: &UnicodeRange) -> bool
Trait Implementations§
Source§impl Clone for UnicodeRange
impl Clone for UnicodeRange
Source§fn clone(&self) -> UnicodeRange
fn clone(&self) -> UnicodeRange
Returns a duplicate 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 UnicodeRange
impl Debug for UnicodeRange
Source§impl Ord for UnicodeRange
impl Ord for UnicodeRange
Source§fn cmp(&self, other: &UnicodeRange) -> Ordering
fn cmp(&self, other: &UnicodeRange) -> 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 for UnicodeRange
impl PartialEq for UnicodeRange
Source§impl PartialOrd for UnicodeRange
impl PartialOrd for UnicodeRange
impl Copy for UnicodeRange
impl Eq for UnicodeRange
impl StructuralPartialEq for UnicodeRange
Auto Trait Implementations§
impl Freeze for UnicodeRange
impl RefUnwindSafe for UnicodeRange
impl Send for UnicodeRange
impl Sync for UnicodeRange
impl Unpin for UnicodeRange
impl UnwindSafe for UnicodeRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more