snark-tool 0.4.0

snark-tool library contains structures and algorithm for (mainly) cubic graph analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::procedure::error::{Error, ProcedureError};
use crate::service::constructions::error::ConstructionError;

impl From<ConstructionError> for Error {
    fn from(error: ConstructionError) -> Self {
        let message = format!("{}", error);
        Error::ProcedureError(ProcedureError { message })
    }
}

impl From<Error> for ConstructionError {
    fn from(error: Error) -> Self {
        let message = format!("{}", error);
        ConstructionError::new(message)
    }
}