pub struct ParamName(/* 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 ParamName
impl ParamName
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new ParamName from a static reference
Sourcepub fn into_boxed_ref(self) -> Box<ParamNameRef>
pub fn into_boxed_ref(self) -> Box<ParamNameRef>
Converts this ParamName into a Box<ParamNameRef>
This will drop any excess capacity.
Methods from Deref<Target = ParamNameRef>§
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 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 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<Box<ParamNameRef>> for ParamName
impl From<Box<ParamNameRef>> for ParamName
Source§fn from(r: Box<ParamNameRef>) -> Self
fn from(r: Box<ParamNameRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, ParamNameRef>> for ParamName
impl<'a> From<Cow<'a, ParamNameRef>> for ParamName
Source§fn from(r: Cow<'a, ParamNameRef>) -> Self
fn from(r: Cow<'a, ParamNameRef>) -> Self
Converts to this type from the input type.
Source§impl Ord for ParamName
impl Ord for ParamName
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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 ParamName
impl PartialOrd for ParamName
impl Eq for ParamName
impl StructuralPartialEq for ParamName
Auto Trait Implementations§
impl Freeze for ParamName
impl RefUnwindSafe for ParamName
impl Send for ParamName
impl Sync for ParamName
impl Unpin for ParamName
impl UnsafeUnpin for ParamName
impl UnwindSafe for ParamName
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§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.