pub struct Pair<K, const C: char, V>(pub K, pub V);
Expand description
Defines a <something><char><something>
pair that is conveniently parseable, e.g., <hostname>:<ip>
or <domain>=<property>
.
§Generics
K
: The type of the key to parse.C
: The separator character to use.V
: The type of the value to parse.
Tuple Fields§
§0: K
§1: V
Trait Implementations§
Auto Trait Implementations§
impl<K, const C: char, V> Freeze for Pair<K, C, V>
impl<K, const C: char, V> RefUnwindSafe for Pair<K, C, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, const C: char, V> Send for Pair<K, C, V>
impl<K, const C: char, V> Sync for Pair<K, C, V>
impl<K, const C: char, V> Unpin for Pair<K, C, V>
impl<K, const C: char, V> UnwindSafe for Pair<K, C, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more