Enum rsass::Error
[−]
[src]
pub enum Error { Input(PathBuf, Error), IoError(Error), Encoding(FromUtf8Error), BadValue(String), BadArguments(String), S(String), }
Most functions in rsass that returns a Result uses this Error type.
Variants
Input(PathBuf, Error)
IoError(Error)
Encoding(FromUtf8Error)
BadValue(String)
BadArguments(String)
S(String)
Methods
impl Error
[src]
fn bad_value(expected: &str, actual: &Value) -> Self
fn badarg(expected: &str, actual: &Value) -> Error
Wrong kind of argument to a sass function.
expected
is a string describing what the parameter should
have been, actual
is the argument.
fn badargs(expected: &[&str], actual: &[&Value]) -> Error
Multiple-argument variant of badarg
.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl From<Error> for Error
[src]
impl From<FromUtf8Error> for Error
[src]
fn from(e: FromUtf8Error) -> Self
Performs the conversion.