Enum forrustts::TablesError[][src]

pub enum TablesError {
Show 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,
}

Error type related to TableCollection

Variants

InvalidGenomeLength
InvalidNodeValue

Raised when invalid node IDs are encountered.

Fields of InvalidNodeValue

found: IdType

The invalid ID

InvalidPosition

Raised when invalid positions are encountered.

Fields of InvalidPosition

found: Position

The invalid position

InvalidLeftRight

Raised when an Edge’s left/right values are invalid.

Fields of InvalidLeftRight

found: (Position, Position)

The invalid (left, right).

InvalidTime

Raised when invalid times are encountered.

Fields of InvalidTime

found: Time

The invalid time

InvalidDeme

Raised with a deme’s ID is invalid.

Fields of InvalidDeme

found: IdType

The invalide deme ID

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

impl Debug for TablesError[src]

impl Display for TablesError[src]

impl Error for TablesError[src]

impl From<TablesError> for ForrusttsError[src]

impl PartialEq<TablesError> for TablesError[src]

impl StructuralPartialEq for TablesError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.