Enum css::StylesheetError
[−]
pub enum StylesheetError { Io(PathBuf, Error), Format(PathBuf, Error), Parse(PathBuf, SourceLocation, String), }
Represents all the things that can go wrong when loading and saving stylesheets.
Variants
Io(PathBuf, Error)
An input-output error occurred, typically when loading or creating a file.
Format(PathBuf, Error)
An error occurred during a std::fmt::write (only happens when saving).
Parse(PathBuf, SourceLocation, String)
An error occurred during a parse.
Trait Implementations
impl Debug for StylesheetError
[src]
impl Display for StylesheetError
impl Error for StylesheetError
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl<'a> From<Context<&'a Path, Error>> for StylesheetError
fn from($crate::Context: Context<&'a Path, Error>) -> StylesheetError
Performs the conversion.
impl<'a> From<Context<&'a Path, Error>> for StylesheetError
fn from($crate::Context: Context<&'a Path, Error>) -> StylesheetError
Performs the conversion.