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§
source§impl<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> ⓘ
source§impl<M: Default> From<Context<Definition<M, Value<M>>>> for Value<M>
impl<M: Default> From<Context<Definition<M, Value<M>>>> for Value<M>
source§fn from(c: Context<Definition<M, Self>>) -> Self
fn from(c: Context<Definition<M, Self>>) -> Self
Converts to this type from the input type.
source§impl<M: Default> From<Definition<M, Value<M>>> for Value<M>
impl<M: Default> From<Definition<M, Value<M>>> for Value<M>
source§fn from(c: Definition<M, Self>) -> Self
fn from(c: Definition<M, Self>) -> Self
Converts to this type from the input type.
source§impl<M> IntoJsonMeta<M> for Value<M>
impl<M> IntoJsonMeta<M> for Value<M>
fn into_json_meta(self, meta: M) -> Meta<Value<M>, M>
source§impl<M: PartialEq> PartialEq<Value<M>> for Value<M>
impl<M: PartialEq> PartialEq<Value<M>> for Value<M>
source§impl<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
source§fn pretty_print(&self) -> Printed<'_, Self>
fn pretty_print(&self) -> Printed<'_, Self>
Print the value with
Options::pretty
options.source§fn compact_print(&self) -> Printed<'_, Self>
fn compact_print(&self) -> Printed<'_, Self>
Print the value with
Options::compact
options.source§fn inline_print(&self) -> Printed<'_, Self>
fn inline_print(&self) -> Printed<'_, Self>
Print the value with
Options::inline
options.source§fn print_with(&self, options: Options) -> Printed<'_, Self>
fn print_with(&self, options: Options) -> Printed<'_, Self>
Print the value with the given options.
source§impl<M, __M> StrippedPartialEq<Value<__M>> for Value<M>
impl<M, __M> StrippedPartialEq<Value<__M>> for Value<M>
fn stripped_eq(&self, other: &Value<__M>) -> bool
source§impl<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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.