pub struct Query(/* private fields */);
Expand description
IRI query.
Implementations§
Source§impl Query
impl Query
Sourcepub fn new<T: ?Sized + AsRef<str>>(input: &T) -> Result<&Self, InvalidQuery<&T>>
pub fn new<T: ?Sized + AsRef<str>>(input: &T) -> Result<&Self, InvalidQuery<&T>>
Creates a new IRI query by parsing the input
value
Sourcepub const unsafe fn new_unchecked(input: &str) -> &Self
pub const unsafe fn new_unchecked(input: &str) -> &Self
Creates a new IRI query from the input
value without validation.
§Safety
The input data must be a valid IRI query.