shapes_converter 0.1.102

RDF data shapes implementation in Rust
Documentation
use std::fmt::Display;

#[derive(Debug, PartialEq, Eq, Default, Clone, Copy, Hash)]
pub struct NodeId {
    n: usize,
}

impl NodeId {
    pub fn new(n: usize) -> NodeId {
        NodeId { n }
    }
}

impl Display for NodeId {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{}", self.n)?;
        Ok(())
    }
}