[][src]Enum azul_css_parser::CssParseErrorInner

pub enum CssParseErrorInner<'a> {
    ParseError(CssSyntaxError),
    UnclosedBlock,
    MalformedCss,
    DynamicCssParseError(DynamicCssParseError<'a>),
    PseudoSelectorParseError(CssPseudoSelectorParseError<'a>),
    NodeTypePath(NodeTypePathParseError<'a>),
    UnknownPropertyKey(&'a str, &'a str),
    VarOnShorthandProperty {
        key: CombinedCssPropertyType,
        value: &'a str,
    },
}

Variants

ParseError(CssSyntaxError)

A hard error in the CSS syntax

UnclosedBlock

Braces are not balanced properly

MalformedCss

Invalid syntax, such as #div { #div: "my-value" }

DynamicCssParseError(DynamicCssParseError<'a>)

Error parsing dynamic CSS property, such as #div { width: {{ my_id }} /* no default case */ }

PseudoSelectorParseError(CssPseudoSelectorParseError<'a>)

Error while parsing a pseudo selector (like :aldkfja)

NodeTypePath(NodeTypePathParseError<'a>)

The path has to be either *, div, p or something like that

UnknownPropertyKey(&'a str, &'a str)

A certain property has an unknown key, for example: alsdfkj: 500px = unknown CSS key "alsdfkj: 500px"

VarOnShorthandProperty

var() can't be used on properties that expand to multiple values, since they would be ambigouus and degrade performance - for example margin: var(--blah) would be ambigouus because it's not clear when setting the variable, whether all sides should be set, instead, you have to use margin-top: var(--blah), margin-bottom: var(--baz) in order to work around this limitation.

Fields of VarOnShorthandProperty

key: CombinedCssPropertyTypevalue: &'a str

Trait Implementations

impl<'a> Clone for CssParseErrorInner<'a>[src]

impl<'a> Debug for CssParseErrorInner<'a>[src]

impl<'a> Display for CssParseErrorInner<'a>[src]

impl<'a> From<CssPseudoSelectorParseError<'a>> for CssParseErrorInner<'a>[src]

impl<'a> From<DynamicCssParseError<'a>> for CssParseErrorInner<'a>[src]

impl<'a> From<Error> for CssParseErrorInner<'a>[src]

impl<'a> From<NodeTypePathParseError<'a>> for CssParseErrorInner<'a>[src]

impl<'a> PartialEq<CssParseErrorInner<'a>> for CssParseErrorInner<'a>[src]

impl<'a> StructuralPartialEq for CssParseErrorInner<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for CssParseErrorInner<'a>

impl<'a> Send for CssParseErrorInner<'a>

impl<'a> Sync for CssParseErrorInner<'a>

impl<'a> Unpin for CssParseErrorInner<'a>

impl<'a> UnwindSafe for CssParseErrorInner<'a>

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> ToString for T where
    T: Display + ?Sized
[src]

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.