Enum json_ld_syntax::context::Context
source · [−]pub enum Context<D> {
Null,
IriRef(IriRefBuf),
Definition(D),
}
Expand description
Context.
Variants
Null
IriRef(IriRefBuf)
Definition(D)
Implementations
sourceimpl<D> Context<D>
impl<D> Context<D>
pub fn as_context_ref(&self) -> ContextRef<'_, D>
Trait Implementations
sourceimpl<'a, D> From<&'a Context<D>> for ContextRef<'a, D>
impl<'a, D> From<&'a Context<D>> for ContextRef<'a, D>
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, C> From<Definition<M, C>> for Context<Definition<M, C>>
impl<M, C> From<Definition<M, C>> for Context<Definition<M, C>>
sourcefn from(c: Definition<M, C>) -> Self
fn from(c: Definition<M, C>) -> Self
Converts to this type from the input type.
sourceimpl<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>
sourceimpl<D: PartialEq> PartialEq<Context<D>> for Context<D>
impl<D: PartialEq> PartialEq<Context<D>> for Context<D>
sourceimpl<D: StrippedPartialEq> StrippedPartialEq<Context<D>> for Context<D>
impl<D: StrippedPartialEq> StrippedPartialEq<Context<D>> for Context<D>
fn stripped_eq(&self, other: &Self) -> bool
sourceimpl<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
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.