Struct cssparser::UnicodeRange [−][src]
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].
Methods
impl UnicodeRange
[src]
impl UnicodeRange
pub fn parse<'i, 't>(
input: &mut Parser<'i, 't>
) -> Result<Self, BasicParseError<'i>>
[src]
pub fn parse<'i, 't>(
input: &mut Parser<'i, 't>
) -> Result<Self, BasicParseError<'i>>
https://drafts.csswg.org/css-syntax/#urange-syntax
Trait Implementations
impl PartialEq for UnicodeRange
[src]
impl PartialEq for UnicodeRange
fn eq(&self, other: &UnicodeRange) -> bool
[src]
fn eq(&self, other: &UnicodeRange) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UnicodeRange) -> bool
[src]
fn ne(&self, other: &UnicodeRange) -> bool
This method tests for !=
.
impl Eq for UnicodeRange
[src]
impl Eq for UnicodeRange
impl Clone for UnicodeRange
[src]
impl Clone for UnicodeRange
fn clone(&self) -> UnicodeRange
[src]
fn clone(&self) -> UnicodeRange
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Hash for UnicodeRange
[src]
impl Hash for UnicodeRange
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for UnicodeRange
[src]
impl Debug for UnicodeRange
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ToCss for UnicodeRange
[src]
impl ToCss for UnicodeRange
Auto Trait Implementations
impl Send for UnicodeRange
impl Send for UnicodeRange
impl Sync for UnicodeRange
impl Sync for UnicodeRange