Enum json_ld_syntax::context::term_definition::NestRef
source · pub enum NestRef<'a> {
Nest,
Term(&'a str),
}
Variants
Nest
Term(&'a str)
Implementations
Trait Implementations
sourceimpl<'a> Ord for NestRef<'a>
impl<'a> Ord for NestRef<'a>
1.21.0 · sourcefn 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 · sourcefn 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
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'a> PartialEq<NestRef<'a>> for NestRef<'a>
impl<'a> PartialEq<NestRef<'a>> for NestRef<'a>
sourceimpl<'a> PartialOrd<NestRef<'a>> for NestRef<'a>
impl<'a> PartialOrd<NestRef<'a>> for NestRef<'a>
sourcefn partial_cmp(&self, other: &NestRef<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &NestRef<'a>) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl<'a> PrecomputeSize for NestRef<'a>
impl<'a> PrecomputeSize for NestRef<'a>
sourceimpl<'a> Print for NestRef<'a>
impl<'a> Print for NestRef<'a>
fn fmt_with(
&self,
f: &mut Formatter<'_>,
_options: &Options,
_indent: usize
) -> Result
sourcefn pretty_print(&self) -> Printed<'_, Self>
fn pretty_print(&self) -> Printed<'_, Self>
Print the value with
Options::pretty
options.sourcefn compact_print(&self) -> Printed<'_, Self>
fn compact_print(&self) -> Printed<'_, Self>
Print the value with
Options::compact
options.sourcefn inline_print(&self) -> Printed<'_, Self>
fn inline_print(&self) -> Printed<'_, Self>
Print the value with
Options::inline
options.sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> BorrowStripped for T
impl<T> BorrowStripped for T
sourceimpl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
sourceimpl<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
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.