shacl 0.3.10

A SHACL validator for RDF data, implemented in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt::Display;

use rust_decimal::Decimal;

#[derive(Debug, Clone, PartialEq)]
pub enum OrderValue {
    Integer(i128),
    Decimal(Decimal),
}

impl Display for OrderValue {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            OrderValue::Integer(i) => write!(f, "{}", i),
            OrderValue::Decimal(d) => write!(f, "{}", d),
        }
    }
}