prefixmap 0.2.15

RDF data shapes implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::PrefixMap;

pub trait Show {
    fn show(&self, pm: &PrefixMap) -> String;
}

impl<S: Show> Show for Option<&S> {
    fn show(&self, pm: &PrefixMap) -> String {
        self.map(|i| i.show(pm)).unwrap_or_default()
    }
}