pub fn new(iri: T) -> Result<Namespace<T>> {
        if is_valid_iri_ref(iri.as_ref()) {
            Ok(Self(iri))
        } else {
            Err(InvalidIri(String::from(iri.as_ref())))
        }
    }
/// Build a custom namespace based on the given IRI.
///
/// `iri` must be a valid IRI, otherwise this constructor returns an error.
Build a custom namespace based on the given IRI.
`iri` must be a valid IRI, otherwise this constructor returns an error.
Build a custom namespace based on the given IRI . ` iri ` must be a valid IRI otherwise this constructor returns an error .
pub fn new(iri: T) -> Result<Namespace<T>> {
        if is_valid_iri_ref(iri.as_ref()) {
            Ok(Self(iri))
        } else {
            Err(InvalidIri(String::from(iri.as_ref())))
        }
    }
pub fn new ( iri : T ) -> Result < Namespace < T > > { if is_valid_iri_ref ( iri . as_ref ( ) ) { Ok ( Self ( iri ) ) } else { Err ( InvalidIri ( String :: from ( iri . as_ref ( ) ) ) ) } }
Build a custom namespace based on the given IRI.
Build a custom namespace based on the given IRI .
iri
T
iri
T