geometric-traits 0.2.0

Trait-based algebraic and graph algorithms for Rust, supporting no_std environments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Submodule defining common errors relative to nodes.

use crate::traits::Vocabulary;

/// Error enumeration relative to nodes.
#[derive(Debug, thiserror::Error, Clone, PartialEq, Eq)]
pub enum NodeError<V: Vocabulary> {
    /// The node does not exist.
    #[error("The node with id {0:?} does not exist.")]
    UnknownNodeId(V::SourceSymbol),
    /// The node symbol does not exist.
    #[error("The node with symbol {0:?} does not exist.")]
    UnknownNodeSymbol(V::DestinationSymbol),
}