Enum json_ld_syntax::context::definition::KeyOrKeywordRef
source · pub enum KeyOrKeywordRef<'a> {
Keyword(Keyword),
Key(KeyRef<'a>),
}
Variants§
Implementations§
source§impl<'a> KeyOrKeywordRef<'a>
impl<'a> KeyOrKeywordRef<'a>
Trait Implementations§
source§impl<'a> Clone for KeyOrKeywordRef<'a>
impl<'a> Clone for KeyOrKeywordRef<'a>
source§fn clone(&self) -> KeyOrKeywordRef<'a>
fn clone(&self) -> KeyOrKeywordRef<'a>
Returns a copy 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<'a> Display for KeyOrKeywordRef<'a>
impl<'a> Display for KeyOrKeywordRef<'a>
source§impl<'a> From<&'a Key> for KeyOrKeywordRef<'a>
impl<'a> From<&'a Key> for KeyOrKeywordRef<'a>
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 str> for KeyOrKeywordRef<'a>
impl<'a> From<&'a str> for KeyOrKeywordRef<'a>
source§impl<'a> From<IdRef<'a>> for KeyOrKeywordRef<'a>
impl<'a> From<IdRef<'a>> for KeyOrKeywordRef<'a>
source§impl<'a> From<KeyOrKeywordRef<'a>> for ExpandableRef<'a>
impl<'a> From<KeyOrKeywordRef<'a>> for ExpandableRef<'a>
source§fn from(k: KeyOrKeywordRef<'a>) -> Self
fn from(k: KeyOrKeywordRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<KeyRef<'a>> for KeyOrKeywordRef<'a>
impl<'a> From<KeyRef<'a>> for KeyOrKeywordRef<'a>
source§impl<'a> From<TypeRef<'a>> for KeyOrKeywordRef<'a>
impl<'a> From<TypeRef<'a>> for KeyOrKeywordRef<'a>
source§impl<'a> PartialEq<KeyOrKeywordRef<'a>> for KeyOrKeywordRef<'a>
impl<'a> PartialEq<KeyOrKeywordRef<'a>> for KeyOrKeywordRef<'a>
source§fn eq(&self, other: &KeyOrKeywordRef<'a>) -> bool
fn eq(&self, other: &KeyOrKeywordRef<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for KeyOrKeywordRef<'a>
impl<'a> Eq for KeyOrKeywordRef<'a>
impl<'a> StructuralEq for KeyOrKeywordRef<'a>
impl<'a> StructuralPartialEq for KeyOrKeywordRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for KeyOrKeywordRef<'a>
impl<'a> Send for KeyOrKeywordRef<'a>
impl<'a> Sync for KeyOrKeywordRef<'a>
impl<'a> Unpin for KeyOrKeywordRef<'a>
impl<'a> UnwindSafe for KeyOrKeywordRef<'a>
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.