#[non_exhaustive]pub enum Invalid {
Show 15 variants
FunctionName,
AtRule,
MixinInMixin,
MixinInControl,
FunctionInMixin,
FunctionInControl,
DuplicateArgument,
PositionalArgAfterNamed,
DeclarationOutsideRule,
InNsRule,
GlobalCustomProperty,
GlobalNsProperty,
ConfigBuiltin,
InScope(ScopeError),
AtError(String),
}
Expand description
Something invalid.
Should be combined with a position to get an Error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FunctionName
Tried to declare a function with a forbidden name.
AtRule
This at rule is not allowed here.
MixinInMixin
Mixins may not contain mixin declarations.
MixinInControl
Mixins may not be declared in control directives.
FunctionInMixin
Mixins may not contain function declarations.
FunctionInControl
Functions may not be declared in control directives.
DuplicateArgument
Duplicate argument.
PositionalArgAfterNamed
Positional arguments must come before keyword arguments.
DeclarationOutsideRule
Declarations may only be used within style rules.
InNsRule
Only properties are valid inside namespace rules.
GlobalCustomProperty
Global custom property not allowed.
GlobalNsProperty
Global namespaced property not allowed.
ConfigBuiltin
Built-in modules can’t be configured.
InScope(ScopeError)
Some invalid scope operation.
AtError(String)
An @error
reached.
Implementations§
Trait Implementations§
source§impl Error for Invalid
impl Error for Invalid
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RefUnwindSafe for Invalid
impl Send for Invalid
impl Sync for Invalid
impl Unpin for Invalid
impl UnwindSafe for Invalid
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