shacl_ir/components/
max_exlcusive.rs1use rudof_rdf::rdf_core::term::literal::ConcreteLiteral;
2use std::fmt::Display;
3
4#[derive(Debug, Clone)]
6pub struct MaxExclusive {
7 max_exclusive: ConcreteLiteral,
8}
9
10impl MaxExclusive {
11 pub fn new(literal: ConcreteLiteral) -> Self {
12 MaxExclusive { max_exclusive: literal }
13 }
14
15 pub fn max_exclusive(&self) -> &ConcreteLiteral {
16 &self.max_exclusive
17 }
18}
19
20impl Display for MaxExclusive {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 write!(f, "MaxExclusive: {}", self.max_exclusive())
23 }
24}