ebi 0.3.14

A stochastic process mining utility and library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use ebi_objects::{Importable, anyhow::Result};
use std::io::BufRead;

pub trait Validate: Importable {
    fn validate(reader: &mut dyn BufRead) -> Result<()>
    where
        Self: Sized,
    {
        match Self::import(reader, &Self::default_importer_parameter_values()) {
            Ok(_) => Ok(()),
            Err(x) => Err(x),
        }
    }
}

impl<T> Validate for T where T: Importable {}