[][src]Struct azul_css::Css

pub struct Css {
    pub stylesheets: Vec<Stylesheet>,
}

Css stylesheet - contains a parsed CSS stylesheet in "rule blocks", i.e. blocks of key-value pairs associated with a selector path.

Fields

stylesheets: Vec<Stylesheet>

One CSS stylesheet can hold more than one sub-stylesheet: For example, when overriding native styles, the .sort_by_specificy() function should not mix the two stylesheets during sorting.

Implementations

impl Css[src]

pub const fn new(stylesheets: Vec<Stylesheet>) -> Self[src]

impl Css[src]

pub fn empty() -> Self[src]

Creates a new, empty CSS with no stylesheets

pub fn append(&mut self, css: Self)[src]

pub fn append_stylesheet(&mut self, styles: Stylesheet)[src]

pub fn sort_by_specificity(&mut self)[src]

pub fn rules<'a>(&'a self) -> RuleIterator<'a>[src]

Trait Implementations

impl Clone for Css[src]

impl Debug for Css[src]

impl Default for Css[src]

impl PartialEq<Css> for Css[src]

impl PartialOrd<Css> for Css[src]

impl StructuralPartialEq for Css[src]

Auto Trait Implementations

impl RefUnwindSafe for Css

impl Send for Css

impl Sync for Css

impl Unpin for Css

impl UnwindSafe for Css

Blanket Implementations

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

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

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

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.