Struct log::kv::Key [−][src]
A key in a structured key-value pair.
Implementations
impl<'k> Key<'k>
[src]
pub fn from_str(key: &'k str) -> Self
[src]
Get a key from a borrowed string.
pub fn as_str(&self) -> &str
[src]
Get a borrowed string from this key.
Trait Implementations
impl<'k> AsRef<str> for Key<'k>
[src]
impl<'k> Borrow<str> for Key<'k>
[src]
impl<'k> Clone for Key<'k>
[src]
impl<'k> Debug for Key<'k>
[src]
impl<'k> Display for Key<'k>
[src]
impl<'k> Eq for Key<'k>
[src]
impl<'k> From<&'k str> for Key<'k>
[src]
impl<'k> Hash for Key<'k>
[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'k> Ord for Key<'k>
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<'k, 'ko> PartialEq<Key<'ko>> for Key<'k>
[src]
fn eq(&self, other: &Key<'ko>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'k, 'ko> PartialOrd<Key<'ko>> for Key<'k>
[src]
fn partial_cmp(&self, other: &Key<'ko>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'k> ToKey for Key<'k>
[src]
Auto Trait Implementations
impl<'k> RefUnwindSafe for Key<'k>
impl<'k> Send for Key<'k>
impl<'k> Sync for Key<'k>
impl<'k> Unpin for Key<'k>
impl<'k> UnwindSafe for Key<'k>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,