Function query
fn query<S: Spec>(s: &str) -> Result<(), Error>
Validates IRI query.
This validator corresponds to RiQueryStr and RiQueryString types.
Note that the first ? character in an IRI is not a part of a query.
For example, https://example.com/?foo#bar has a query foo, not ?foo.
Examples
This type can have an IRI query.
Note that the IRI foo://bar/baz?qux#quux has the query qux, not ?qux.
use ;
assert!;
assert!;
assert!;
assert!;
assert!;
assert!;
assert!;
// Question sign `?` can appear in an IRI query.
assert!;
Some characters and sequences cannot used in a query.
use ;
// `<` and `>` cannot directly appear in an IRI reference.
assert!;
// Broken percent encoding cannot appear in an IRI reference.
assert!;
assert!;
// Hash sign `#` cannot appear in an IRI query.
assert!;