Struct cssparser::UnicodeRange
source · [−]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
sourceimpl 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
sourceimpl Clone for UnicodeRange
impl Clone for UnicodeRange
sourcefn clone(&self) -> UnicodeRange
fn clone(&self) -> UnicodeRange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UnicodeRange
impl Debug for UnicodeRange
sourceimpl Hash for UnicodeRange
impl Hash for UnicodeRange
sourceimpl PartialEq<UnicodeRange> for UnicodeRange
impl PartialEq<UnicodeRange> for UnicodeRange
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &UnicodeRange) -> bool
fn ne(&self, other: &UnicodeRange) -> bool
This method tests for !=
.
sourceimpl ToCss for UnicodeRange
impl ToCss for UnicodeRange
impl Eq for UnicodeRange
impl StructuralEq for UnicodeRange
impl StructuralPartialEq for UnicodeRange
Auto Trait Implementations
impl RefUnwindSafe for UnicodeRange
impl Send for UnicodeRange
impl Sync for UnicodeRange
impl Unpin for UnicodeRange
impl UnwindSafe for UnicodeRange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more