Enum json_ld_syntax::context::Value
source · [−]pub enum Value<M> {
One(Meta<Context<Definition<M, Self>>, M>),
Many(Vec<Meta<Context<Definition<M, Self>>, M>>),
}
Expand description
Context entry.
Variants
One(Meta<Context<Definition<M, Self>>, M>)
Many(Vec<Meta<Context<Definition<M, Self>>, M>>)
Implementations
Trait Implementations
sourceimpl<M: Clone + Send + Sync> AnyValue<M> for Value<M>
impl<M: Clone + Send + Sync> AnyValue<M> for Value<M>
type Definition = Definition<M, Value<M>>
fn as_value_ref(&self) -> ValueRef<'_, M, Self::Definition>
fn traverse(&self) -> Traverse<'_, M, Self>ⓘNotable traits for Traverse<'a, M, C>impl<'a, M: Clone, C: AnyValue<M>> Iterator for Traverse<'a, M, C> type Item = FragmentRef<'a, M, C>;
sourceimpl<M> AnyValueMut for Value<M>
impl<M> AnyValueMut for Value<M>
sourceimpl<M: Default> From<Context<Definition<M, Value<M>>>> for Value<M>
impl<M: Default> From<Context<Definition<M, Value<M>>>> for Value<M>
sourcefn from(c: Context<Definition<M, Self>>) -> Self
fn from(c: Context<Definition<M, Self>>) -> Self
Converts to this type from the input type.
sourceimpl<M: Default> From<Definition<M, Value<M>>> for Value<M>
impl<M: Default> From<Definition<M, Value<M>>> for Value<M>
sourcefn from(c: Definition<M, Self>) -> Self
fn from(c: Definition<M, Self>) -> Self
Converts to this type from the input type.
sourceimpl<M> From<Meta<Context<Definition<M, Value<M>>>, M>> for Value<M>
impl<M> From<Meta<Context<Definition<M, Value<M>>>, M>> for Value<M>
sourcefn from(c: Meta<Context<Definition<M, Self>>, M>) -> Self
fn from(c: Meta<Context<Definition<M, Self>>, M>) -> Self
Converts to this type from the input type.
sourceimpl<M> IntoJsonMeta<M> for Value<M>
impl<M> IntoJsonMeta<M> for Value<M>
fn into_json_meta(self, meta: M) -> Meta<Value<M>, M>
sourceimpl<M: PartialEq> PartialEq<Value<M>> for Value<M>
impl<M: PartialEq> PartialEq<Value<M>> for Value<M>
sourceimpl<M: Clone + Send + Sync> Print for Value<M>
impl<M: Clone + Send + Sync> Print for Value<M>
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.
sourceimpl<M> StrippedPartialEq<Value<M>> for Value<M>
impl<M> StrippedPartialEq<Value<M>> for Value<M>
fn stripped_eq(&self, other: &Self) -> bool
sourceimpl<M: Clone> TryFromJson<M> for Value<M>
impl<M: Clone> TryFromJson<M> for Value<M>
type Error = InvalidContext
fn try_from_json(
Meta: Meta<Value<M>, M>
) -> Result<Meta<Self, M>, Meta<InvalidContext, M>>
impl<M: Eq> Eq for Value<M>
impl<M> StructuralEq for Value<M>
impl<M> StructuralPartialEq for Value<M>
Auto Trait Implementations
impl<M> RefUnwindSafe for Value<M>where
M: RefUnwindSafe,
impl<M> Send for Value<M>where
M: Send,
impl<M> Sync for Value<M>where
M: Sync,
impl<M> Unpin for Value<M>where
M: Unpin,
impl<M> UnwindSafe for Value<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.