[][src]Struct cssparser::UnicodeRange

#[repr(C)]
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]

pub fn parse<'i, 't>(
    input: &mut Parser<'i, 't>
) -> Result<Self, BasicParseError<'i>>
[src]

https://drafts.csswg.org/css-syntax/#urange-syntax

Trait Implementations

impl ToCss for UnicodeRange[src]

fn to_css_string(&self) -> String[src]

Serialize self in CSS syntax and return a string. Read more

impl Clone for UnicodeRange[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<UnicodeRange> for UnicodeRange[src]

impl Eq for UnicodeRange[src]

impl Debug for UnicodeRange[src]

impl Hash for UnicodeRange[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

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]