Struct slog::Key [−][src]
pub struct Key { /* fields omitted */ }
Opaque Key is a representation of a key.
It is owned, and largely forms a contract for key to follow.
Methods
impl Key
[src]
impl Key
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Returns the length of self.
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Returns the length of self.
pub fn as_str(&self) -> &str
[src]
pub fn as_str(&self) -> &str
Take as a str
pub fn as_ref(&self) -> &str
[src]
pub fn as_ref(&self) -> &str
Take as a reference
Trait Implementations
impl Clone for Key
[src]
impl Clone for Key
fn clone(&self) -> Key
[src]
fn clone(&self) -> Key
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for Key
[src]
impl Default for Key
impl Hash for Key
[src]
impl Hash for Key
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl From<&'static str> for Key
[src]
impl From<&'static str> for Key
impl From<String> for Key
[src]
impl From<String> for Key
impl From<Key> for String
[src]
impl From<Key> for String
impl FromIterator<char> for Key
[src]
impl FromIterator<char> for Key
fn from_iter<I: IntoIterator<Item = char>>(iter: I) -> Key
[src]
fn from_iter<I: IntoIterator<Item = char>>(iter: I) -> Key
Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a char> for Key
[src]
impl<'a> FromIterator<&'a char> for Key
fn from_iter<I: IntoIterator<Item = &'a char>>(iter: I) -> Key
[src]
fn from_iter<I: IntoIterator<Item = &'a char>>(iter: I) -> Key
Creates a value from an iterator. Read more
impl FromIterator<String> for Key
[src]
impl FromIterator<String> for Key
fn from_iter<I: IntoIterator<Item = String>>(iter: I) -> Key
[src]
fn from_iter<I: IntoIterator<Item = String>>(iter: I) -> Key
Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a String> for Key
[src]
impl<'a> FromIterator<&'a String> for Key
fn from_iter<I: IntoIterator<Item = &'a String>>(iter: I) -> Key
[src]
fn from_iter<I: IntoIterator<Item = &'a String>>(iter: I) -> Key
Creates a value from an iterator. Read more
impl<'a> FromIterator<&'a str> for Key
[src]
impl<'a> FromIterator<&'a str> for Key
fn from_iter<I: IntoIterator<Item = &'a str>>(iter: I) -> Key
[src]
fn from_iter<I: IntoIterator<Item = &'a str>>(iter: I) -> Key
Creates a value from an iterator. Read more
impl<'a> FromIterator<Cow<'a, str>> for Key
[src]
impl<'a> FromIterator<Cow<'a, str>> for Key
fn from_iter<I: IntoIterator<Item = Cow<'a, str>>>(iter: I) -> Key
[src]
fn from_iter<I: IntoIterator<Item = Cow<'a, str>>>(iter: I) -> Key
Creates a value from an iterator. Read more
impl PartialEq<str> for Key
[src]
impl PartialEq<str> for Key
fn eq(&self, other: &str) -> bool
[src]
fn eq(&self, other: &str) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<String> for Key
[src]
impl PartialEq<String> for Key
fn eq(&self, other: &String) -> bool
[src]
fn eq(&self, other: &String) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<Self> for Key
[src]
impl PartialEq<Self> for Key
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl AsRef<str> for Key
[src]
impl AsRef<str> for Key
impl Display for Key
[src]
impl Display for Key
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for Key
[src]
impl Debug for Key