Enum json_ld_syntax::context::Context
source · pub enum Context<D> {
Null,
IriRef(IriRefBuf),
Definition(D),
}
Expand description
Context.
Variants§
Implementations§
source§impl<D> Context<D>
impl<D> Context<D>
pub fn as_context_ref(&self) -> ContextRef<'_, D>
Trait Implementations§
source§impl<'a, D> From<&'a Context<D>> for ContextRef<'a, D>
impl<'a, D> From<&'a Context<D>> for ContextRef<'a, D>
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, C> From<Definition<M, C>> for Context<Definition<M, C>>
impl<M, C> From<Definition<M, C>> for Context<Definition<M, C>>
source§fn from(c: Definition<M, C>) -> Self
fn from(c: Definition<M, C>) -> Self
Converts to this type from the input type.
source§impl<M> IntoJsonMeta<M> for Context<Definition<M>>
impl<M> IntoJsonMeta<M> for Context<Definition<M>>
fn into_json_meta(self, meta: M) -> Meta<Value<M>, M>
source§impl<D: PartialEq> PartialEq<Context<D>> for Context<D>
impl<D: PartialEq> PartialEq<Context<D>> for Context<D>
source§impl<D: StrippedPartialEq<__D>, __D> StrippedPartialEq<Context<__D>> for Context<D>
impl<D: StrippedPartialEq<__D>, __D> StrippedPartialEq<Context<__D>> for Context<D>
fn stripped_eq(&self, other: &Context<__D>) -> bool
source§impl<M: Clone> TryFromJson<M> for Context<Definition<M>>
impl<M: Clone> TryFromJson<M> for Context<Definition<M>>
type Error = InvalidContext
fn try_from_json(
Meta: Meta<Value<M>, M>
) -> Result<Meta<Self, M>, Meta<InvalidContext, M>>
impl<D: Eq> Eq for Context<D>
impl<D> StructuralEq for Context<D>
impl<D> StructuralPartialEq for Context<D>
Auto Trait Implementations§
impl<D> RefUnwindSafe for Context<D>where
D: RefUnwindSafe,
impl<D> Send for Context<D>where
D: Send,
impl<D> Sync for Context<D>where
D: Sync,
impl<D> Unpin for Context<D>where
D: Unpin,
impl<D> UnwindSafe for Context<D>where
D: 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.