pub enum CssItem {
Rule {
prelude: String,
body: String,
},
AtRule {
name: String,
prelude: String,
body: Option<String>,
body_at: usize,
},
}Expand description
One item of a rule list.
Variants§
Rule
prelude { body } — a style rule; body is the raw declaration text.
AtRule
@name prelude { body } or @name prelude; (body: None). body_at is the byte offset
of the body’s first character in the stylesheet. The body keeps its comments BLANKED (each
byte replaced by NUL) rather than removed, so the offsets of anything parsed out of it are
still offsets into the stylesheet; parse_items of the body reads it.
Trait Implementations§
impl Eq for CssItem
impl StructuralPartialEq for CssItem
Auto Trait Implementations§
impl Freeze for CssItem
impl RefUnwindSafe for CssItem
impl Send for CssItem
impl Sync for CssItem
impl Unpin for CssItem
impl UnsafeUnpin for CssItem
impl UnwindSafe for CssItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.