pub enum StylesheetError {
Parse {
path: Option<PathBuf>,
message: String,
},
InvalidColor {
style: String,
value: String,
path: Option<PathBuf>,
},
UnknownAttribute {
style: String,
attribute: String,
path: Option<PathBuf>,
},
InvalidShorthand {
style: String,
value: String,
path: Option<PathBuf>,
},
AliasError {
source: StyleValidationError,
},
InvalidDefinition {
style: String,
message: String,
path: Option<PathBuf>,
},
Load {
message: String,
},
}Expand description
Error type for stylesheet parsing failures.
Variants§
Parse
YAML parse error.
Fields
InvalidColor
Invalid color format.
Fields
UnknownAttribute
Unknown attribute in style definition.
Fields
InvalidShorthand
Invalid shorthand syntax.
Fields
AliasError
Alias validation error (dangling reference or cycle).
Fields
§
source: StyleValidationErrorThe underlying validation error.
InvalidDefinition
Invalid style definition structure.
Fields
Load
File loading error.
Trait Implementations§
Source§impl Clone for StylesheetError
impl Clone for StylesheetError
Source§fn clone(&self) -> StylesheetError
fn clone(&self) -> StylesheetError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StylesheetError
impl Debug for StylesheetError
Source§impl Display for StylesheetError
impl Display for StylesheetError
Source§impl Error for StylesheetError
impl Error for StylesheetError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for StylesheetError
impl PartialEq for StylesheetError
impl Eq for StylesheetError
impl StructuralPartialEq for StylesheetError
Auto Trait Implementations§
impl Freeze for StylesheetError
impl RefUnwindSafe for StylesheetError
impl Send for StylesheetError
impl Sync for StylesheetError
impl Unpin for StylesheetError
impl UnwindSafe for StylesheetError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.