Struct json_ld_syntax::context::definition::KeyRef
source · pub struct KeyRef<'a>(_);
Implementations§
Trait Implementations§
source§impl<'a> From<KeyRef<'a>> for KeyOrKeywordRef<'a>
impl<'a> From<KeyRef<'a>> for KeyOrKeywordRef<'a>
source§impl<'a> PartialEq<KeyRef<'a>> for KeyRef<'a>
impl<'a> PartialEq<KeyRef<'a>> for KeyRef<'a>
source§impl<'a> PrecomputeSize for KeyRef<'a>
impl<'a> PrecomputeSize for KeyRef<'a>
source§impl<'a> Print for KeyRef<'a>
impl<'a> Print for KeyRef<'a>
fn fmt_with( &self, f: &mut Formatter<'_>, _options: &Options, _indent: usize ) -> Result
source§fn pretty_print(&self) -> Printed<'_, Self>
fn pretty_print(&self) -> Printed<'_, Self>
Print the value with
Options::pretty
options.source§fn compact_print(&self) -> Printed<'_, Self>
fn compact_print(&self) -> Printed<'_, Self>
Print the value with
Options::compact
options.source§fn inline_print(&self) -> Printed<'_, Self>
fn inline_print(&self) -> Printed<'_, Self>
Print the value with
Options::inline
options.source§fn print_with(&self, options: Options) -> Printed<'_, Self>
fn print_with(&self, options: Options) -> Printed<'_, Self>
Print the value with the given options.
impl<'a> Copy for KeyRef<'a>
impl<'a> Eq for KeyRef<'a>
impl<'a> StructuralEq for KeyRef<'a>
impl<'a> StructuralPartialEq for KeyRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for KeyRef<'a>
impl<'a> Send for KeyRef<'a>
impl<'a> Sync for KeyRef<'a>
impl<'a> Unpin for KeyRef<'a>
impl<'a> UnwindSafe for KeyRef<'a>
Blanket Implementations§
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.