Function iri
fn iri<S: Spec>(s: &str) -> Result<(), Error>
Validates IRI.
This validator corresponds to RiStr and RiString types.
Examples
This type can have an IRI (which is absolute, and may have fragment part).
use ;
assert!;
assert!;
assert!;
assert!;
assert!;
assert!;
// `foo://.../` below are all allowed. See the crate documentation for detail.
assert!;
assert!;
assert!;
assert!;
assert!;
Relative IRI reference is not allowed.
use ;
// This is relative path.
assert!;
// `/foo/bar` is an absolute path, but it is authority-relative.
assert!;
// `//foo/bar` is termed "network-path reference",
// or usually called "protocol-relative reference".
assert!;
// Same-document reference is relative.
assert!;
// Empty string is not a valid absolute IRI.
assert!;
Some characters and sequences cannot used in an IRI.
use ;
// `<` and `>` cannot directly appear in an IRI.
assert!;
// Broken percent encoding cannot appear in an IRI.
assert!;
assert!;