pub enum TskitRustError {
ValueError {
got: String,
expected: String,
},
IndexError,
ErrorCode {
code: i32,
},
}
Variants§
ValueError
Used when bad input is encountered.
IndexError
Used when array access is out of range. Typically, this is used when accessing arrays allocated on the C side.
ErrorCode
Wrapper around tskit C API error codes.
Trait Implementations§
Source§impl Debug for TskitRustError
impl Debug for TskitRustError
Source§impl Display for TskitRustError
impl Display for TskitRustError
Source§impl Error for TskitRustError
impl Error for TskitRustError
1.30.0 · 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()
Source§impl PartialEq for TskitRustError
impl PartialEq for TskitRustError
impl StructuralPartialEq for TskitRustError
Auto Trait Implementations§
impl Freeze for TskitRustError
impl RefUnwindSafe for TskitRustError
impl Send for TskitRustError
impl Sync for TskitRustError
impl Unpin for TskitRustError
impl UnwindSafe for TskitRustError
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