pub enum TablesError {
Show 15 variants
InvalidGenomeLength,
InvalidNodeValue {
found: IdType,
},
InvalidPosition {
found: Position,
},
InvalidLeftRight {
found: (Position, Position),
},
InvalidTime {
found: Time,
},
InvalidDeme {
found: IdType,
},
NullParent,
NullChild,
NodeOutOfBounds,
NodeTimesUnordered,
ParentTimesUnsorted,
ParentsNotContiguous,
EdgesNotSortedByChild,
EdgesNotSortedByLeft,
DuplicateEdges,
}
Expand description
Error type related to TableCollection
Variants§
InvalidGenomeLength
Raised by TableCollection::new
.
InvalidNodeValue
Raised when invalid node ID
s are encountered.
InvalidPosition
Raised when invalid positions are encountered.
InvalidLeftRight
Raised when an Edge
’s left/right
values are invalid.
InvalidTime
Raised when invalid times are encountered.
InvalidDeme
Raised with a deme’s ID
is invalid.
NullParent
Can be raised by validate_edge_table
NullChild
Can be raised by validate_edge_table
NodeOutOfBounds
Can be raised by validate_edge_table
NodeTimesUnordered
Can be raised by validate_edge_table
ParentTimesUnsorted
Can be raised by validate_edge_table
ParentsNotContiguous
Can be raised by validate_edge_table
EdgesNotSortedByChild
Can be raised by validate_edge_table
EdgesNotSortedByLeft
Can be raised by validate_edge_table
DuplicateEdges
Can be raised by validate_edge_table
Trait Implementations§
Source§impl Debug for TablesError
impl Debug for TablesError
Source§impl Display for TablesError
impl Display for TablesError
Source§impl Error for TablesError
impl Error for TablesError
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 From<TablesError> for ForrusttsError
impl From<TablesError> for ForrusttsError
Source§fn from(source: TablesError) -> Self
fn from(source: TablesError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TablesError
impl PartialEq for TablesError
impl StructuralPartialEq for TablesError
Auto Trait Implementations§
impl Freeze for TablesError
impl RefUnwindSafe for TablesError
impl Send for TablesError
impl Sync for TablesError
impl Unpin for TablesError
impl UnwindSafe for TablesError
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