Enum json_ld_syntax::container::Container
source · pub enum Container<M> {
One(ContainerKind),
Many(Vec<Meta<ContainerKind, M>>),
}
Variants§
One(ContainerKind)
Many(Vec<Meta<ContainerKind, M>>)
Trait Implementations§
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<M> From<ContainerKind> for Container<M>
impl<M> From<ContainerKind> for Container<M>
source§fn from(c: ContainerKind) -> Self
fn from(c: ContainerKind) -> Self
Converts to this type from the input type.
source§impl<M> IntoJsonMeta<M> for Container<M>
impl<M> IntoJsonMeta<M> for Container<M>
fn into_json_meta(self, meta: M) -> Meta<Value<M>, M>
source§impl<M: Ord> Ord for Container<M>
impl<M: Ord> Ord for Container<M>
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<M: PartialEq> PartialEq<Container<M>> for Container<M>
impl<M: PartialEq> PartialEq<Container<M>> for Container<M>
source§impl<M: PartialOrd> PartialOrd<Container<M>> for Container<M>
impl<M: PartialOrd> PartialOrd<Container<M>> for Container<M>
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<M> StrippedOrd for Container<M>
impl<M> StrippedOrd for Container<M>
fn stripped_cmp(&self, other: &Self) -> Ordering
source§impl<M, __M> StrippedPartialEq<Container<__M>> for Container<M>
impl<M, __M> StrippedPartialEq<Container<__M>> for Container<M>
fn stripped_eq(&self, other: &Container<__M>) -> bool
source§impl<M, __M> StrippedPartialOrd<Container<__M>> for Container<M>
impl<M, __M> StrippedPartialOrd<Container<__M>> for Container<M>
source§impl<M> TryFromJson<M> for Container<M>
impl<M> TryFromJson<M> for Container<M>
type Error = InvalidContext
fn try_from_json(
value: Meta<Value<M>, M>
) -> Result<Meta<Self, M>, Meta<InvalidContext, M>>
impl<M: Eq> Eq for Container<M>
impl<M> StrippedEq for Container<M>
impl<M> StructuralEq for Container<M>
impl<M> StructuralPartialEq for Container<M>
Auto Trait Implementations§
impl<M> RefUnwindSafe for Container<M>where
M: RefUnwindSafe,
impl<M> Send for Container<M>where
M: Send,
impl<M> Sync for Container<M>where
M: Sync,
impl<M> Unpin for Container<M>where
M: Unpin,
impl<M> UnwindSafe for Container<M>where
M: UnwindSafe,
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.