[−][src]Struct azul_css::Css
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]
fn partial_cmp(&self, other: &Css) -> Option<Ordering>
[src]
fn lt(&self, other: &Css) -> bool
[src]
fn le(&self, other: &Css) -> bool
[src]
fn gt(&self, other: &Css) -> bool
[src]
fn ge(&self, other: &Css) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,