[−][src]Struct azul_css::Stylesheet
Fields
rules: Vec<CssRuleBlock>
The style rules making up the document - for example, de-duplicated CSS rules
Implementations
impl Stylesheet
[src]
pub const fn new(rules: Vec<CssRuleBlock>) -> Self
[src]
impl Stylesheet
[src]
pub fn empty() -> Self
[src]
Creates a new stylesheet with no style rules.
pub fn sort_by_specificity(&mut self)
[src]
Sort the style rules by their weight, so that the rules are applied in the correct order. Should always be called when a new style is loaded from an external source.
Trait Implementations
impl Clone for Stylesheet
[src]
fn clone(&self) -> Stylesheet
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Stylesheet
[src]
impl Default for Stylesheet
[src]
fn default() -> Stylesheet
[src]
impl From<Vec<CssRuleBlock>> for Stylesheet
[src]
fn from(rules: Vec<CssRuleBlock>) -> Self
[src]
impl PartialEq<Stylesheet> for Stylesheet
[src]
fn eq(&self, other: &Stylesheet) -> bool
[src]
fn ne(&self, other: &Stylesheet) -> bool
[src]
impl PartialOrd<Stylesheet> for Stylesheet
[src]
fn partial_cmp(&self, other: &Stylesheet) -> Option<Ordering>
[src]
fn lt(&self, other: &Stylesheet) -> bool
[src]
fn le(&self, other: &Stylesheet) -> bool
[src]
fn gt(&self, other: &Stylesheet) -> bool
[src]
fn ge(&self, other: &Stylesheet) -> bool
[src]
impl StructuralPartialEq for Stylesheet
[src]
Auto Trait Implementations
impl RefUnwindSafe for Stylesheet
impl Send for Stylesheet
impl Sync for Stylesheet
impl Unpin for Stylesheet
impl UnwindSafe for Stylesheet
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>,