pub enum KeyOrKeyword {
Keyword(Keyword),
Key(Key),
}
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for KeyOrKeyword
impl Clone for KeyOrKeyword
Source§fn clone(&self) -> KeyOrKeyword
fn clone(&self) -> KeyOrKeyword
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Display for KeyOrKeyword
impl Display for KeyOrKeyword
Source§impl<'a> From<&'a KeyOrKeyword> for ExpandableRef<'a>
impl<'a> From<&'a KeyOrKeyword> for ExpandableRef<'a>
Source§fn from(k: &'a KeyOrKeyword) -> Self
fn from(k: &'a KeyOrKeyword) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a KeyOrKeyword> for KeyOrKeywordRef<'a>
impl<'a> From<&'a KeyOrKeyword> for KeyOrKeywordRef<'a>
Source§fn from(k: &'a KeyOrKeyword) -> Self
fn from(k: &'a KeyOrKeyword) -> Self
Converts to this type from the input type.
Source§impl Hash for KeyOrKeyword
impl Hash for KeyOrKeyword
Source§impl Ord for KeyOrKeyword
impl Ord for KeyOrKeyword
Source§fn cmp(&self, other: &KeyOrKeyword) -> Ordering
fn cmp(&self, other: &KeyOrKeyword) -> Ordering
1.21.0 · 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 KeyOrKeyword
impl PartialEq for KeyOrKeyword
Source§impl PartialOrd for KeyOrKeyword
impl PartialOrd for KeyOrKeyword
impl Eq for KeyOrKeyword
impl StructuralPartialEq for KeyOrKeyword
Auto Trait Implementations§
impl Freeze for KeyOrKeyword
impl RefUnwindSafe for KeyOrKeyword
impl Send for KeyOrKeyword
impl Sync for KeyOrKeyword
impl Unpin for KeyOrKeyword
impl UnwindSafe for KeyOrKeyword
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.