pub enum KeyOrKeyword {
Keyword(Keyword),
Key(Key),
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for KeyOrKeyword
impl Clone for KeyOrKeyword
Source§impl Display for KeyOrKeyword
impl Display for KeyOrKeyword
impl Eq for KeyOrKeyword
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<'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 Hash for KeyOrKeyword
impl Hash for KeyOrKeyword
Source§impl Ord for KeyOrKeyword
impl Ord for KeyOrKeyword
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for KeyOrKeyword
impl PartialEq for KeyOrKeyword
Source§impl PartialOrd for KeyOrKeyword
impl PartialOrd for KeyOrKeyword
impl StructuralPartialEq for KeyOrKeyword
Auto Trait Implementations§
impl Forget for KeyOrKeyword
impl Freeze for KeyOrKeyword
impl Move for KeyOrKeyword
impl RefUnwindSafe for KeyOrKeyword
impl Send for KeyOrKeywordwhere
RawVecInner: Send,
impl Sync for KeyOrKeywordwhere
RawVecInner: Sync,
impl Unpin for KeyOrKeyword
impl UnsafeUnpin for KeyOrKeyword
impl UnwindSafe for KeyOrKeywordwhere
RawVecInner: UnwindSafe,
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> 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.