Enum json_ld_syntax::context::term_definition::NestRef
source · pub enum NestRef<'a> {
Nest,
Term(&'a str),
}
Variants§
Implementations§
Trait Implementations§
source§impl<'a> Ord for NestRef<'a>
impl<'a> Ord for NestRef<'a>
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<'a> PartialEq<NestRef<'a>> for NestRef<'a>
impl<'a> PartialEq<NestRef<'a>> for NestRef<'a>
source§impl<'a> PartialOrd<NestRef<'a>> for NestRef<'a>
impl<'a> PartialOrd<NestRef<'a>> for NestRef<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> PrecomputeSize for NestRef<'a>
impl<'a> PrecomputeSize for NestRef<'a>
source§impl<'a> Print for NestRef<'a>
impl<'a> Print for NestRef<'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 NestRef<'a>
impl<'a> Eq for NestRef<'a>
impl<'a> StructuralEq for NestRef<'a>
impl<'a> StructuralPartialEq for NestRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for NestRef<'a>
impl<'a> Send for NestRef<'a>
impl<'a> Sync for NestRef<'a>
impl<'a> Unpin for NestRef<'a>
impl<'a> UnwindSafe for NestRef<'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.