pub struct QueryBuf(/* private fields */);Expand description
Owned URI query.
Implementations§
source§impl QueryBuf
impl QueryBuf
sourcepub fn new(input: Vec<u8>) -> Result<Self, InvalidQuery<Vec<u8>>>
pub fn new(input: Vec<u8>) -> Result<Self, InvalidQuery<Vec<u8>>>
Creates a new owned URI query by parsing the input value
sourcepub const unsafe fn new_unchecked(input: Vec<u8>) -> Self
pub const unsafe fn new_unchecked(input: Vec<u8>) -> Self
Creates a new owned URI query from the input value without validation.
§Safety
The input data must be a valid URI query.
pub fn as_query(&self) -> &Query
Methods from Deref<Target = Query>§
pub const EMPTY: &'static Self = _
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_str(&self) -> &str
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 Freeze for QueryBuf
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)