Enum subparse::errors::ErrorKind []

pub enum ErrorKind {
    Msg(String),
    SsaError(ErrorKind),
    IdxError(ErrorKind),
    SrtError(ErrorKind),
    FromUtf8Error(FromUtf8Error),
    UnknownFileFormat,
}

The kind of an error.

Variants

A convenient variant for String.

Parsing a .ssa/.ass file failed.

Parsing a .idx file failed.

Parsing a .srt file failed.

Converting byte-stream to string failed.

The file format is not supported by this library.

Methods

impl ErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for ErrorKind

Formats the value using the given formatter.

impl Display for ErrorKind

Formats the value using the given formatter.

impl From<ErrorKind> for ErrorKind

Parsing a .ssa/.ass file failed.

Performs the conversion.

impl From<ErrorKind> for ErrorKind

Parsing a .idx file failed.

Performs the conversion.

impl From<ErrorKind> for ErrorKind

Parsing a .srt file failed.

Performs the conversion.

impl<'a> From<&'a str> for ErrorKind

Performs the conversion.

impl From<String> for ErrorKind

Performs the conversion.

impl From<Error> for ErrorKind

Performs the conversion.