Enum json_ld_core::Type
source · pub enum Type<I> {
Id,
Json,
None,
Vocab,
Iri(I),
}Expand description
Object type.
This is the value of a @type entry.
Variants§
Id
@id.
The value must be interpreted as an IRI.
Json
@json.
The value is an arbitrary JSON value.
None
@none
Vocab
@vocab
Iri(I)
IRI type.
Implementations§
Trait Implementations§
source§impl<I: PartialEq> PartialEq<Type<I>> for Type<I>
impl<I: PartialEq> PartialEq<Type<I>> for Type<I>
source§impl<I: StrippedHash> StrippedHash for Type<I>
impl<I: StrippedHash> StrippedHash for Type<I>
fn stripped_hash<H: Hasher>(&self, state: &mut H)
source§impl<I: StrippedPartialEq<__I>, __I> StrippedPartialEq<Type<__I>> for Type<I>
impl<I: StrippedPartialEq<__I>, __I> StrippedPartialEq<Type<__I>> for Type<I>
fn stripped_eq(&self, other: &Type<__I>) -> bool
impl<I: Eq> Eq for Type<I>
impl<I: StrippedEq> StrippedEq for Type<I>
impl<I> StructuralEq for Type<I>
impl<I> StructuralPartialEq for Type<I>
Auto Trait Implementations§
impl<I> RefUnwindSafe for Type<I>where
I: RefUnwindSafe,
impl<I> Send for Type<I>where
I: Send,
impl<I> Sync for Type<I>where
I: Sync,
impl<I> Unpin for Type<I>where
I: Unpin,
impl<I> UnwindSafe for Type<I>where
I: 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.