macro_rules! iri {
(
$lit: tt
) => { ... };
}
Expand description
#[macro_use]
use iri_s::{IriS, iri};
let iri = iri!("http://example.org/");
assert_eq!(iri.as_str(), "http://example.org/");
At this moment the implementation leverages on oxrdf::NamedNode
Example
use iri_s::IriS;
use std::str::FromStr;
let iri = IriS::from_str("http://example.org/").unwrap();
assert_eq!(iri.as_str(), "http://example.org/")