iri_s 0.2.9

RDF data shapes implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::IriS;
use crate::error::IriSError;
use std::path::Path;

impl TryFrom<&Path> for IriS {
    type Error = IriSError;

    fn try_from(value: &Path) -> Result<Self, Self::Error> {
        Err(IriSError::ConvertingPathToIri {
            path: value.to_string_lossy().to_string(),
            error: String::from("Converting path to IRI is not supported in WASM target"),
        })
    }
}