Struct tdesktop_theme::ParseError[][src]

pub struct ParseError {
    pub message: &'static str,
    pub line: Option<usize>,
    pub column: Option<usize>,
}

Represents an error occured during parsing.

Reasons parsing may fail

  • Absence of the file colors.tdesktop-theme if the parser was given an archive;
  • Bad formatting of the palette file (it's <variable>:<color>;, with any number of whitespaces between tokens, and also C-style comments);
  • Wrong format of colors (they may only be #rrggbb or #rrggbbaa);
  • Wrong format of variable names (they may only contain latin letters, digits and the underscore symbol (_)).

Fields

Contains a message explaining why parsing failed.

If possible, the parser will report the line of the contents where parsing failed.

If possible, the parser will report the column of the contents where parsing failed.

Trait Implementations

impl Debug for ParseError
[src]

Formats the value using the given formatter. Read more

impl Display for ParseError
[src]

Formats the value using the given formatter. Read more

impl Error for ParseError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl Send for ParseError

impl Sync for ParseError