pub struct ParamNameRef(/* private fields */);Expand description
The name of a query parameter.
Parameters are named (e.g., handle) and automatically assigned
positional placeholders ($1, $2, etc.) during rendering.
Implementations§
Source§impl ParamNameRef
impl ParamNameRef
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed ParamNameRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed ParamNameRef
Sourcepub fn into_owned(self: Box<ParamNameRef>) -> ParamName
pub fn into_owned(self: Box<ParamNameRef>) -> ParamName
Converts a Box<ParamNameRef> into a ParamName without copying or allocating
Trait Implementations§
Source§impl AsRef<ParamNameRef> for ParamName
impl AsRef<ParamNameRef> for ParamName
Source§fn as_ref(&self) -> &ParamNameRef
fn as_ref(&self) -> &ParamNameRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for ParamNameRef
impl AsRef<str> for ParamNameRef
Source§impl Borrow<ParamNameRef> for ParamName
impl Borrow<ParamNameRef> for ParamName
Source§fn borrow(&self) -> &ParamNameRef
fn borrow(&self) -> &ParamNameRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for ParamNameRef
impl Borrow<str> for ParamNameRef
Source§impl Debug for ParamNameRef
impl Debug for ParamNameRef
Source§impl Display for ParamNameRef
impl Display for ParamNameRef
impl Eq for ParamNameRef
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, ParamNameRef>> for &'a ParamNameRef
impl<'a, 'b: 'a> From<&'a Cow<'b, ParamNameRef>> for &'a ParamNameRef
Source§fn from(r: &'a Cow<'b, ParamNameRef>) -> &'a ParamNameRef
fn from(r: &'a Cow<'b, ParamNameRef>) -> &'a ParamNameRef
Converts to this type from the input type.
Source§impl<'a> From<&'a ParamNameRef> for Cow<'a, ParamNameRef>
impl<'a> From<&'a ParamNameRef> for Cow<'a, ParamNameRef>
Source§fn from(r: &'a ParamNameRef) -> Self
fn from(r: &'a ParamNameRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a str> for &'a ParamNameRef
impl<'a> From<&'a str> for &'a ParamNameRef
Source§fn from(s: &'a str) -> &'a ParamNameRef
fn from(s: &'a str) -> &'a ParamNameRef
Converts to this type from the input type.
Source§impl From<&ParamNameRef> for ParamName
impl From<&ParamNameRef> for ParamName
Source§fn from(s: &ParamNameRef) -> Self
fn from(s: &ParamNameRef) -> Self
Converts to this type from the input type.
Source§impl From<&ParamNameRef> for Rc<ParamNameRef>
impl From<&ParamNameRef> for Rc<ParamNameRef>
Source§fn from(r: &ParamNameRef) -> Self
fn from(r: &ParamNameRef) -> Self
Converts to this type from the input type.
Source§impl From<&ParamNameRef> for Arc<ParamNameRef>
impl From<&ParamNameRef> for Arc<ParamNameRef>
Source§fn from(r: &ParamNameRef) -> Self
fn from(r: &ParamNameRef) -> Self
Converts to this type from the input type.
Source§impl Hash for ParamNameRef
impl Hash for ParamNameRef
Source§impl Ord for ParamNameRef
impl Ord for ParamNameRef
Source§impl PartialEq for ParamNameRef
impl PartialEq for ParamNameRef
Source§fn eq(&self, other: &ParamNameRef) -> bool
fn eq(&self, other: &ParamNameRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<&ParamNameRef> for ParamName
impl PartialEq<&ParamNameRef> for ParamName
Source§fn eq(&self, other: &&ParamNameRef) -> bool
fn eq(&self, other: &&ParamNameRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<ParamName> for ParamNameRef
impl PartialEq<ParamName> for ParamNameRef
Source§impl PartialEq<ParamName> for &ParamNameRef
impl PartialEq<ParamName> for &ParamNameRef
Source§impl PartialEq<ParamNameRef> for ParamName
impl PartialEq<ParamNameRef> for ParamName
Source§fn eq(&self, other: &ParamNameRef) -> bool
fn eq(&self, other: &ParamNameRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ParamNameRef
impl PartialOrd for ParamNameRef
impl StructuralPartialEq for ParamNameRef
Auto Trait Implementations§
impl !Sized for ParamNameRef
impl Freeze for ParamNameRef
impl RefUnwindSafe for ParamNameRef
impl Send for ParamNameRef
impl Sync for ParamNameRef
impl Unpin for ParamNameRef
impl UnsafeUnpin for ParamNameRef
impl UnwindSafe for ParamNameRef
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.