pub struct Param<'a> { /* private fields */ }
Expand description
A web-based URL query parameter.
Implementations§
source§impl<'a> Param<'a>
impl<'a> Param<'a>
Construction
sourcepub unsafe fn new_unchecked(name: &'a str, value: Option<&'a str>) -> Self
pub unsafe fn new_unchecked(name: &'a str, value: Option<&'a str>) -> Self
sourcepub unsafe fn from_str_unchecked(s: &'a str) -> Self
pub unsafe fn from_str_unchecked(s: &'a str) -> Self
Creates a new query parameter from the string. (the string will be split on the first =
)
§Unsafe
This constructor does not validate the name or value.
Trait Implementations§
source§impl<'a> Ord for Param<'a>
impl<'a> Ord for Param<'a>
source§impl<'a> PartialEq for Param<'a>
impl<'a> PartialEq for Param<'a>
source§impl<'a> PartialOrd for Param<'a>
impl<'a> PartialOrd for Param<'a>
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<'a> Copy for Param<'a>
impl<'a> Eq for Param<'a>
impl<'a> StructuralPartialEq for Param<'a>
Auto Trait Implementations§
impl<'a> Freeze for Param<'a>
impl<'a> RefUnwindSafe for Param<'a>
impl<'a> Send for Param<'a>
impl<'a> Sync for Param<'a>
impl<'a> Unpin for Param<'a>
impl<'a> UnwindSafe for Param<'a>
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