less-rs 0.0.0

A Rust implementation of the Less CSS preprocessor.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use selectors::parser::SelectorParseErrorKind;

#[derive(Debug)]
pub enum ParserError<'i> {
  SelectorError(SelectorParseErrorKind<'i>),
  /// A custom error that is not part of the CSS spec.
  CustomError(&'i str),

  InvalidLessVariable,
}

impl<'i> From<SelectorParseErrorKind<'i>> for ParserError<'i> {
  fn from(err: SelectorParseErrorKind<'i>) -> ParserError<'i> {
    ParserError::SelectorError(err)
  }
}