pub struct Stylesheet<'a, B = SimpleBlock<'a>> {
pub rules: Vec<Rule<'a, B>>,
pub errors: Vec<ParseError>,
}Expand description
A stylesheet’s rules, and what was dropped while parsing it.
Fields§
§rules: Vec<Rule<'a, B>>§errors: Vec<ParseError>Trait Implementations§
Source§impl<'a, B> Clone for Stylesheet<'a, B>where
B: Clone,
impl<'a, B> Clone for Stylesheet<'a, B>where
B: Clone,
Source§fn clone(&self) -> Stylesheet<'a, B>
fn clone(&self) -> Stylesheet<'a, B>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, B> Debug for Stylesheet<'a, B>where
B: Debug,
impl<'a, B> Debug for Stylesheet<'a, B>where
B: Debug,
Source§impl<B> Default for Stylesheet<'_, B>
impl<B> Default for Stylesheet<'_, B>
Source§fn default() -> Stylesheet<'_, B>
fn default() -> Stylesheet<'_, B>
Returns the “default value” for a type. Read more
Source§impl Display for Stylesheet<'_>
impl Display for Stylesheet<'_>
Source§impl Display for Stylesheet<'_, Block<'_>>
impl Display for Stylesheet<'_, Block<'_>>
Source§impl<'a, B> PartialEq for Stylesheet<'a, B>where
B: PartialEq,
impl<'a, B> PartialEq for Stylesheet<'a, B>where
B: PartialEq,
impl<'a, B> StructuralPartialEq for Stylesheet<'a, B>where
B: PartialEq,
Auto Trait Implementations§
impl<'a, B> Forget for Stylesheet<'a, B>
impl<'a, B> Freeze for Stylesheet<'a, B>
impl<'a, B> Move for Stylesheet<'a, B>
impl<'a, B> RefUnwindSafe for Stylesheet<'a, B>
impl<'a, B> Send for Stylesheet<'a, B>
impl<'a, B> Sync for Stylesheet<'a, B>
impl<'a, B> Unpin for Stylesheet<'a, B>
impl<'a, B> UnsafeUnpin for Stylesheet<'a, B>
impl<'a, B> UnwindSafe for Stylesheet<'a, B>
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