Enum json_ld_syntax::container::ContainerRef
source · pub enum ContainerRef<'a, M> {
One(ContainerKind),
Many(&'a [Meta<ContainerKind, M>]),
}
Variants§
One(ContainerKind)
Many(&'a [Meta<ContainerKind, M>])
Implementations§
source§impl<'a, M> ContainerRef<'a, M>
impl<'a, M> ContainerRef<'a, M>
Trait Implementations§
source§impl<'a, M: Clone> Clone for ContainerRef<'a, M>
impl<'a, M: Clone> Clone for ContainerRef<'a, M>
source§fn clone(&self) -> ContainerRef<'a, M>
fn clone(&self) -> ContainerRef<'a, M>
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, M: Debug> Debug for ContainerRef<'a, M>
impl<'a, M: Debug> Debug for ContainerRef<'a, M>
source§impl<'a, M> From<&'a Container<M>> for ContainerRef<'a, M>
impl<'a, M> From<&'a Container<M>> for ContainerRef<'a, M>
source§impl<'a, M: Hash> Hash for ContainerRef<'a, M>
impl<'a, M: Hash> Hash for ContainerRef<'a, M>
source§impl<'a, M: Ord> Ord for ContainerRef<'a, M>
impl<'a, M: Ord> Ord for ContainerRef<'a, M>
source§fn cmp(&self, other: &ContainerRef<'a, M>) -> Ordering
fn cmp(&self, other: &ContainerRef<'a, M>) -> Ordering
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, M: PartialEq> PartialEq<ContainerRef<'a, M>> for ContainerRef<'a, M>
impl<'a, M: PartialEq> PartialEq<ContainerRef<'a, M>> for ContainerRef<'a, M>
source§fn eq(&self, other: &ContainerRef<'a, M>) -> bool
fn eq(&self, other: &ContainerRef<'a, M>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, M: PartialOrd> PartialOrd<ContainerRef<'a, M>> for ContainerRef<'a, M>
impl<'a, M: PartialOrd> PartialOrd<ContainerRef<'a, M>> for ContainerRef<'a, M>
source§fn partial_cmp(&self, other: &ContainerRef<'a, M>) -> Option<Ordering>
fn partial_cmp(&self, other: &ContainerRef<'a, M>) -> Option<Ordering>
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, M> PrecomputeSize for ContainerRef<'a, M>
impl<'a, M> PrecomputeSize for ContainerRef<'a, M>
source§impl<'a, M> PrintWithSize for ContainerRef<'a, M>
impl<'a, M> PrintWithSize for ContainerRef<'a, M>
impl<'a, M: Eq> Eq for ContainerRef<'a, M>
impl<'a, M> StructuralEq for ContainerRef<'a, M>
impl<'a, M> StructuralPartialEq for ContainerRef<'a, M>
Auto Trait Implementations§
impl<'a, M> RefUnwindSafe for ContainerRef<'a, M>where
M: RefUnwindSafe,
impl<'a, M> Send for ContainerRef<'a, M>where
M: Sync,
impl<'a, M> Sync for ContainerRef<'a, M>where
M: Sync,
impl<'a, M> Unpin for ContainerRef<'a, M>
impl<'a, M> UnwindSafe for ContainerRef<'a, M>where
M: RefUnwindSafe,
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.