Struct cssparser::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>(
input: &mut Parser<'i, '_>
) -> Result<Self, BasicParseError<'i>>
pub fn parse<'i>( input: &mut Parser<'i, '_> ) -> 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 for UnicodeRange
impl PartialEq 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 ==
.source§impl ToCss for UnicodeRange
impl ToCss 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