Struct cssparser::UnicodeRange
[−]
[src]
pub struct UnicodeRange { pub start: u32, pub end: u32, }
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]
fn parse<'i, 't>(
input: &mut Parser<'i, 't>
) -> Result<Self, BasicParseError<'i>>
input: &mut Parser<'i, 't>
) -> Result<Self, BasicParseError<'i>>
Trait Implementations
impl PartialEq for UnicodeRange
[src]
fn eq(&self, __arg_0: &UnicodeRange) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UnicodeRange) -> bool
This method tests for !=
.
impl Eq for UnicodeRange
[src]
impl Clone for UnicodeRange
[src]
fn clone(&self) -> UnicodeRange
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for UnicodeRange
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for UnicodeRange
[src]
impl ToCss for UnicodeRange
[src]
fn to_css<W>(&self, dest: &mut W) -> Result where
W: Write,
W: Write,
Serialize self
in CSS syntax, writing to dest
.
fn to_css_string(&self) -> String
Serialize self
in CSS syntax and return a string. Read more
fn fmt_to_css<W>(&self, dest: &mut W) -> Result where
W: Write,
W: Write,
Serialize self
in CSS syntax and return a result compatible with std::fmt::Show
. Read more