pub enum RustyleError {
CssParseError {
message: String,
line: Option<usize>,
column: Option<usize>,
source_snippet: Option<String>,
file: Option<String>,
},
InvalidProperty {
property: String,
suggestions: Vec<String>,
context: Option<String>,
line: Option<usize>,
column: Option<usize>,
},
InvalidValue {
property: String,
value: String,
suggestions: Vec<String>,
expected_types: Vec<String>,
line: Option<usize>,
column: Option<usize>,
},
MissingProperty {
property: String,
context: Option<String>,
suggestions: Vec<String>,
},
RegistrationError {
message: String,
class_name: Option<String>,
},
InvalidTokens {
errors: Vec<String>,
},
BrowserCompatibility {
property: String,
value: Option<String>,
unsupported_browsers: Vec<String>,
suggestion: Option<String>,
},
InvalidSelector {
selector: String,
message: String,
suggestion: Option<String>,
},
}Expand description
Rustyle error types with enhanced context
Variants§
CssParseError
CSS parsing error with detailed location
Fields
InvalidProperty
Invalid CSS property with suggestions
Fields
InvalidValue
Invalid CSS value with suggestions
Fields
MissingProperty
Missing required property
RegistrationError
Style registration error
InvalidTokens
Invalid design tokens
BrowserCompatibility
Browser compatibility warning
Fields
InvalidSelector
Selector validation error
Trait Implementations§
Source§impl Clone for RustyleError
impl Clone for RustyleError
Source§fn clone(&self) -> RustyleError
fn clone(&self) -> RustyleError
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 RustyleError
impl Debug for RustyleError
Source§impl Display for RustyleError
impl Display for RustyleError
Source§impl Error for RustyleError
impl Error for RustyleError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for RustyleError
impl RefUnwindSafe for RustyleError
impl Send for RustyleError
impl Sync for RustyleError
impl Unpin for RustyleError
impl UnwindSafe for RustyleError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more