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.
Methods from Deref<Target = PctStr>§
Trait Implementations§
source§impl<'a> PartialEq<&'a Query> for QueryBuf
impl<'a> PartialEq<&'a Query> for QueryBuf
source§impl<'a> PartialEq<&'a str> for Query
impl<'a> PartialEq<&'a str> for Query
source§impl PartialEq<Query> for QueryBuf
impl PartialEq<Query> for QueryBuf
source§impl PartialEq for Query
impl PartialEq for Query
source§impl<'a> PartialOrd<&'a Query> for QueryBuf
impl<'a> PartialOrd<&'a Query> for QueryBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<Query> for QueryBuf
impl PartialOrd<Query> for QueryBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd for Query
impl PartialOrd for Query
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more