[−][src]Struct slog::Key
Opaque Key is a representation of a key.
It is owned, and largely forms a contract for key to follow.
Implementations
impl Key
[src]
pub fn len(&self) -> usize
[src]
Returns the length of self.
pub fn is_empty(&self) -> bool
[src]
Returns the length of self.
pub fn as_str(&self) -> &str
[src]
Take as a str
pub fn as_ref(&self) -> &str
[src]
Take as a reference
Trait Implementations
impl AsRef<str> for Key
[src]
impl Clone for Key
[src]
impl Debug for Key
[src]
impl Default for Key
[src]
impl Display for Key
[src]
impl Eq for Key
[src]
impl From<&'static str> for Key
[src]
impl From<Key> for String
[src]
impl From<String> for Key
[src]
impl<'a> FromIterator<&'a String> for Key
[src]
pub fn from_iter<I: IntoIterator<Item = &'a String>>(iter: I) -> Key
[src]
impl<'a> FromIterator<&'a char> for Key
[src]
pub fn from_iter<I: IntoIterator<Item = &'a char>>(iter: I) -> Key
[src]
impl<'a> FromIterator<&'a str> for Key
[src]
pub fn from_iter<I: IntoIterator<Item = &'a str>>(iter: I) -> Key
[src]
impl<'a> FromIterator<Cow<'a, str>> for Key
[src]
impl FromIterator<String> for Key
[src]
pub fn from_iter<I: IntoIterator<Item = String>>(iter: I) -> Key
[src]
impl FromIterator<char> for Key
[src]
pub fn from_iter<I: IntoIterator<Item = char>>(iter: I) -> Key
[src]
impl Hash for Key
[src]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'_> PartialEq<&'_ str> for Key
[src]
pub fn eq(&self, other: &&str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Key> for Key
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<String> for Key
[src]
pub fn eq(&self, other: &String) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<str> for Key
[src]
pub fn eq(&self, other: &str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Key
[src]
Auto Trait Implementations
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
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>,