Struct cssparser::unicode_range::UnicodeRange
source · #[repr(C)]pub struct UnicodeRange {
pub start: u32,
pub end: u32,
}
Expand description
One contiguous range of code points.
Can not be empty. Can represent a single code point when start == end.
Fields§
§start: u32
Inclusive start of the range. In [0, end].
end: u32
Inclusive end of the range. In [0, 0x10FFFF].
Implementations§
source§impl UnicodeRange
impl UnicodeRange
sourcepub fn parse<'i, 't>(
input: &mut Parser<'i, 't>
) -> Result<Self, BasicParseError<'i>>
pub fn parse<'i, 't>(
input: &mut Parser<'i, 't>
) -> Result<Self, BasicParseError<'i>>
https://drafts.csswg.org/css-syntax/#urange-syntax
Trait Implementations§
source§impl Clone for UnicodeRange
impl Clone for UnicodeRange
source§fn clone(&self) -> UnicodeRange
fn clone(&self) -> UnicodeRange
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 UnicodeRange
impl Debug for UnicodeRange
source§impl Hash for UnicodeRange
impl Hash for UnicodeRange
source§impl PartialEq<UnicodeRange> for UnicodeRange
impl PartialEq<UnicodeRange> for UnicodeRange
source§fn eq(&self, other: &UnicodeRange) -> bool
fn eq(&self, other: &UnicodeRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.