[][src]Enum azul_css::CssDeclaration

pub enum CssDeclaration {
    Static(CssProperty),
    Dynamic(DynamicCssProperty),
}

Contains one parsed key: value pair, static or dynamic

Variants

Static(CssProperty)

Static key-value pair, such as width: 500px

Dynamic key-value pair with default value, such as width: [[ my_id | 500px ]]

Implementations

impl CssDeclaration[src]

pub const fn new_static(prop: CssProperty) -> Self[src]

pub const fn new_dynamic(prop: DynamicCssProperty) -> Self[src]

pub fn get_type(&self) -> CssPropertyType[src]

Returns the type of the property (i.e. the CSS key as a typed enum)

pub fn is_inheritable(&self) -> bool[src]

Determines if the property will be inherited (applied to the children) during the recursive application of the style on the DOM tree

pub fn can_trigger_relayout(&self) -> bool[src]

Returns whether this rule affects only styling properties or layout properties (that could trigger a re-layout)

pub fn to_str(&self) -> String[src]

Trait Implementations

impl Clone for CssDeclaration[src]

impl Debug for CssDeclaration[src]

impl Eq for CssDeclaration[src]

impl Hash for CssDeclaration[src]

impl Ord for CssDeclaration[src]

impl PartialEq<CssDeclaration> for CssDeclaration[src]

impl PartialOrd<CssDeclaration> for CssDeclaration[src]

impl StructuralEq for CssDeclaration[src]

impl StructuralPartialEq for CssDeclaration[src]

Auto Trait Implementations

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.