Enum rust_bert::RustBertError
source · pub enum RustBertError {
FileDownloadError(Error),
IOError(String),
TchError(String),
TokenizerError(String),
InvalidConfigurationError(String),
ValueError(String),
}
Variants§
FileDownloadError(Error)
IOError(String)
TchError(String)
TokenizerError(String)
InvalidConfigurationError(String)
ValueError(String)
Trait Implementations§
source§impl Debug for RustBertError
impl Debug for RustBertError
source§impl Display for RustBertError
impl Display for RustBertError
source§impl Error for RustBertError
impl Error for RustBertError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for RustBertError
impl From<Error> for RustBertError
source§impl From<Error> for RustBertError
impl From<Error> for RustBertError
source§impl From<TchError> for RustBertError
impl From<TchError> for RustBertError
source§impl From<TokenizerError> for RustBertError
impl From<TokenizerError> for RustBertError
source§fn from(error: TokenizerError) -> Self
fn from(error: TokenizerError) -> Self
Converts to this type from the input type.