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<Type<I>> for Type<I>where
I: PartialEq<I>,
impl<I> PartialEq<Type<I>> for Type<I>where
I: PartialEq<I>,
source§impl<I> StrippedHash for Type<I>where
I: StrippedHash,
impl<I> StrippedHash for Type<I>where
I: StrippedHash,
fn stripped_hash<H>(&self, state: &mut H)where
H: Hasher,
source§impl<I, __I> StrippedPartialEq<Type<__I>> for Type<I>where
I: StrippedPartialEq<__I>,
impl<I, __I> StrippedPartialEq<Type<__I>> for Type<I>where
I: StrippedPartialEq<__I>,
fn stripped_eq(&self, other: &Type<__I>) -> bool
impl<I> Eq for Type<I>where
I: Eq,
impl<I> StrippedEq for Type<I>where
I: StrippedEq,
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
§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
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.