pub struct Error { /* private fields */ }
Expand description
SassError
s can be either a structured error specific to grass
or an
io::Error
.
In the former case, the best way to interact with the error is to simply print
it to the user. The Display
implementation of this kind of error mirrors
that of the errors dart-sass
emits, e.g.
Error: $number: foo is not a number.
|
308 | color: unit(foo);
| ^^^
|
./input.scss:308:17
Implementations§
Trait Implementations§
source§impl Error for SassError
impl Error for SassError
source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl !RefUnwindSafe for SassError
impl Send for SassError
impl Sync for SassError
impl Unpin for SassError
impl !UnwindSafe for SassError
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