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 Keypub fn len(&self) -> usize[src]
pub fn len(&self) -> usizeReturns the length of self.
pub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> boolReturns the length of self.
pub fn as_str(&self) -> &str[src]
pub fn as_str(&self) -> &strTake as a str
pub fn as_ref(&self) -> &str[src]
pub fn as_ref(&self) -> &strTake as a reference
Trait Implementations
impl Clone for Key[src]
impl Clone for Keyfn clone(&self) -> Key[src]
fn clone(&self) -> KeyReturns 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 Keyimpl Hash for Key[src]
impl Hash for Keyfn 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 Keyimpl From<String> for Key[src]
impl From<String> for Keyimpl From<Key> for String[src]
impl From<Key> for Stringimpl FromIterator<char> for Key[src]
impl FromIterator<char> for Keyfn from_iter<I: IntoIterator<Item = char>>(iter: I) -> Key[src]
fn from_iter<I: IntoIterator<Item = char>>(iter: I) -> KeyCreates a value from an iterator. Read more
impl<'a> FromIterator<&'a char> for Key[src]
impl<'a> FromIterator<&'a char> for Keyfn from_iter<I: IntoIterator<Item = &'a char>>(iter: I) -> Key[src]
fn from_iter<I: IntoIterator<Item = &'a char>>(iter: I) -> KeyCreates a value from an iterator. Read more
impl FromIterator<String> for Key[src]
impl FromIterator<String> for Keyfn from_iter<I: IntoIterator<Item = String>>(iter: I) -> Key[src]
fn from_iter<I: IntoIterator<Item = String>>(iter: I) -> KeyCreates a value from an iterator. Read more
impl<'a> FromIterator<&'a String> for Key[src]
impl<'a> FromIterator<&'a String> for Keyfn from_iter<I: IntoIterator<Item = &'a String>>(iter: I) -> Key[src]
fn from_iter<I: IntoIterator<Item = &'a String>>(iter: I) -> KeyCreates a value from an iterator. Read more
impl<'a> FromIterator<&'a str> for Key[src]
impl<'a> FromIterator<&'a str> for Keyfn from_iter<I: IntoIterator<Item = &'a str>>(iter: I) -> Key[src]
fn from_iter<I: IntoIterator<Item = &'a str>>(iter: I) -> KeyCreates a value from an iterator. Read more
impl<'a> FromIterator<Cow<'a, str>> for Key[src]
impl<'a> FromIterator<Cow<'a, str>> for Keyfn from_iter<I: IntoIterator<Item = Cow<'a, str>>>(iter: I) -> Key[src]
fn from_iter<I: IntoIterator<Item = Cow<'a, str>>>(iter: I) -> KeyCreates a value from an iterator. Read more
impl PartialEq<str> for Key[src]
impl PartialEq<str> for Keyfn eq(&self, other: &str) -> bool[src]
fn eq(&self, other: &str) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<String> for Key[src]
impl PartialEq<String> for Keyfn eq(&self, other: &String) -> bool[src]
fn eq(&self, other: &String) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<Self> for Key[src]
impl PartialEq<Self> for Keyfn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl AsRef<str> for Key[src]
impl AsRef<str> for Keyimpl Display for Key[src]
impl Display for Keyfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Debug for Key[src]
impl Debug for Key