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
sourceimpl<'a, M> From<&'a Container<M>> for ContainerRef<'a, M>
impl<'a, M> From<&'a Container<M>> for ContainerRef<'a, M>
sourceimpl<M> From<ContainerKind> for Container<M>
impl<M> From<ContainerKind> for Container<M>
sourcefn from(c: ContainerKind) -> Self
fn from(c: ContainerKind) -> Self
Converts to this type from the input type.
sourceimpl<M> IntoJsonMeta<M> for Container<M>
impl<M> IntoJsonMeta<M> for Container<M>
fn into_json_meta(self, meta: M) -> Meta<Value<M>, M>
sourceimpl<M: Ord> Ord for Container<M>
impl<M: Ord> Ord for Container<M>
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<M: PartialEq> PartialEq<Container<M>> for Container<M>
impl<M: PartialEq> PartialEq<Container<M>> for Container<M>
sourceimpl<M: PartialOrd> PartialOrd<Container<M>> for Container<M>
impl<M: PartialOrd> PartialOrd<Container<M>> for Container<M>
sourcefn partial_cmp(&self, other: &Container<M>) -> Option<Ordering>
fn partial_cmp(&self, other: &Container<M>) -> 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<M> StrippedOrd for Container<M>
impl<M> StrippedOrd for Container<M>
fn stripped_cmp(&self, other: &Self) -> Ordering
sourceimpl<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
sourceimpl<M, __M> StrippedPartialOrd<Container<__M>> for Container<M>
impl<M, __M> StrippedPartialOrd<Container<__M>> for Container<M>
fn stripped_partial_cmp(&self, other: &Container<__M>) -> Option<Ordering>
sourceimpl<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
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.