pub struct KeyPattern(/* private fields */);Expand description
A simple key pattern label.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for KeyPattern
impl AsRef<str> for KeyPattern
Source§impl Clone for KeyPattern
impl Clone for KeyPattern
Source§fn clone(&self) -> KeyPattern
fn clone(&self) -> KeyPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyPattern
impl Debug for KeyPattern
Source§impl Default for KeyPattern
impl Default for KeyPattern
Source§fn default() -> KeyPattern
fn default() -> KeyPattern
Returns the “default value” for a type. Read more
Source§impl Display for KeyPattern
impl Display for KeyPattern
Source§impl From<&str> for KeyPattern
impl From<&str> for KeyPattern
Source§fn from(value: &str) -> KeyPattern
fn from(value: &str) -> KeyPattern
Converts to this type from the input type.
Source§impl From<String> for KeyPattern
impl From<String> for KeyPattern
Source§fn from(value: String) -> KeyPattern
fn from(value: String) -> KeyPattern
Converts to this type from the input type.
Source§impl Hash for KeyPattern
impl Hash for KeyPattern
Source§impl Ord for KeyPattern
impl Ord for KeyPattern
Source§fn cmp(&self, other: &KeyPattern) -> Ordering
fn cmp(&self, other: &KeyPattern) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeyPattern
impl PartialEq for KeyPattern
Source§fn eq(&self, other: &KeyPattern) -> bool
fn eq(&self, other: &KeyPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for KeyPattern
impl PartialOrd for KeyPattern
impl Eq for KeyPattern
impl StructuralPartialEq for KeyPattern
Auto Trait Implementations§
impl Freeze for KeyPattern
impl RefUnwindSafe for KeyPattern
impl Send for KeyPattern
impl Sync for KeyPattern
impl Unpin for KeyPattern
impl UnsafeUnpin for KeyPattern
impl UnwindSafe for KeyPattern
Blanket Implementations§
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