#[non_exhaustive]
pub enum ErrorKind {
ParseError {
message: String,
loc: SpanLoc,
unicode: bool,
},
IoError(Arc<Error>),
FromUtf8Error(String),
}
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.
ParseError
Fields
§
message: String
The message related to this parse error.
Error messages should only be used to assist in debugging for the end user. They may change significantly between bugfix versions and should not be relied on to remain stable.
Error messages do not contain the Error:
prefix or pretty-printed
span and context information as is shown in the Display
implementation.
§
unicode: bool
Whether or not the user allows unicode characters to be emitted in error messages.
This is configurable with crate::Options::unicode_error_messages
IoError(Arc<Error>)
Sass was unable to find the entry-point file.
Files that cannot be found using @import
, @use
, and @forward
will
emit Self::ParseError
s
FromUtf8Error(String)
The entry-point file or an imported file was not valid UTF-8.
Trait Implementations§
source§impl Clone for PublicSassErrorKind
impl Clone for PublicSassErrorKind
source§fn clone(&self) -> PublicSassErrorKind
fn clone(&self) -> PublicSassErrorKind
Returns a copy 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 more