pub struct QueryBuf(/* private fields */);
Expand description
Owned IRI query.
Implementations§
source§impl QueryBuf
impl QueryBuf
sourcepub fn new(input: String) -> Result<Self, InvalidQuery<String>>
pub fn new(input: String) -> Result<Self, InvalidQuery<String>>
Creates a new owned IRI query by parsing the input
value
sourcepub const unsafe fn new_unchecked(input: String) -> Self
pub const unsafe fn new_unchecked(input: String) -> Self
Creates a new owned IRI query from the input
value without validation.
§Safety
The input data must be a valid IRI query.
pub fn as_query(&self) -> &Query
Methods from Deref<Target = Query>§
pub const EMPTY: &'static Self = _
pub fn as_str(&self) -> &str
pub fn as_bytes(&self) -> &[u8] ⓘ
sourcepub fn as_pct_str(&self) -> &PctStr
pub fn as_pct_str(&self) -> &PctStr
Returns the query as a percent-encoded string slice.
Methods from Deref<Target = PctStr>§
Trait Implementations§
source§impl Ord for QueryBuf
impl Ord for QueryBuf
source§impl<'a> PartialEq<&'a Query> for QueryBuf
impl<'a> PartialEq<&'a Query> for QueryBuf
source§impl PartialEq<Query> for QueryBuf
impl PartialEq<Query> for QueryBuf
source§impl PartialEq for QueryBuf
impl PartialEq for QueryBuf
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 QueryBuf
impl PartialOrd 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 moreimpl Eq for QueryBuf
Auto Trait Implementations§
impl RefUnwindSafe for QueryBuf
impl Send for QueryBuf
impl Sync for QueryBuf
impl Unpin for QueryBuf
impl UnwindSafe for QueryBuf
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more