pub enum SvmError {
InvalidParameter(String),
ParseError {
line: usize,
message: String,
},
ModelFormatError(String),
Io(Error),
}Expand description
Errors returned by libsvm-rs operations.
Variants§
InvalidParameter(String)
An SVM parameter failed validation.
ParseError
A parse error occurred while reading a problem or model file.
Fields
ModelFormatError(String)
A model file could not be loaded due to format issues.
Io(Error)
An I/O error occurred.
Trait Implementations§
Source§impl Error for SvmError
impl Error for SvmError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for SvmError
impl !RefUnwindSafe for SvmError
impl Send for SvmError
impl Sync for SvmError
impl Unpin for SvmError
impl !UnwindSafe for SvmError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more