[−][src]Enum azul_css_parser::CssParseErrorInner
Variants
ParseError(CssSyntaxError)
A hard error in the CSS syntax
Braces are not balanced properly
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
A certain property has an unknown key, for example: alsdfkj: 500px
= unknown CSS key "alsdfkj: 500px"
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: CombinedCssPropertyType
value: &'a str
Trait Implementations
impl<'a> Clone for CssParseErrorInner<'a>
[src]
fn clone(&self) -> CssParseErrorInner<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for CssParseErrorInner<'a>
[src]
impl<'a> Display for CssParseErrorInner<'a>
[src]
impl<'a> From<CssPseudoSelectorParseError<'a>> for CssParseErrorInner<'a>
[src]
fn from(e: CssPseudoSelectorParseError<'a>) -> Self
[src]
impl<'a> From<DynamicCssParseError<'a>> for CssParseErrorInner<'a>
[src]
fn from(e: DynamicCssParseError<'a>) -> Self
[src]
impl<'a> From<Error> for CssParseErrorInner<'a>
[src]
fn from(e: CssSyntaxError) -> Self
[src]
impl<'a> From<NodeTypePathParseError<'a>> for CssParseErrorInner<'a>
[src]
fn from(e: NodeTypePathParseError<'a>) -> Self
[src]
impl<'a> PartialEq<CssParseErrorInner<'a>> for CssParseErrorInner<'a>
[src]
fn eq(&self, other: &CssParseErrorInner<'a>) -> bool
[src]
fn ne(&self, other: &CssParseErrorInner<'a>) -> bool
[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]
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,