Struct json_ld_syntax::context::definition::Type
source · pub struct Type<M> {
pub container: Entry<TypeContainer, M>,
pub protected: Option<Entry<bool, M>>,
}
Fields§
§container: Entry<TypeContainer, M>
§protected: Option<Entry<bool, M>>
Implementations§
Trait Implementations§
source§impl<M> IntoJsonMeta<M> for Type<M>
impl<M> IntoJsonMeta<M> for Type<M>
fn into_json_meta(self, meta: M) -> Meta<Value<M>, M>
source§impl<M: Ord> Ord for Type<M>
impl<M: Ord> Ord for Type<M>
source§impl<M: PartialEq> PartialEq<Type<M>> for Type<M>
impl<M: PartialEq> PartialEq<Type<M>> for Type<M>
source§impl<M: PartialOrd> PartialOrd<Type<M>> for Type<M>
impl<M: PartialOrd> PartialOrd<Type<M>> for Type<M>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<M> PrecomputeSize for Type<M>
impl<M> PrecomputeSize for Type<M>
source§impl<M> PrintWithSize for Type<M>
impl<M> PrintWithSize for Type<M>
source§impl<M, __M> StrippedPartialEq<Type<__M>> for Type<M>
impl<M, __M> StrippedPartialEq<Type<__M>> for Type<M>
fn stripped_eq(&self, other: &Type<__M>) -> bool
source§impl<M> TryFromJson<M> for Type<M>
impl<M> TryFromJson<M> for Type<M>
type Error = InvalidContext
fn try_from_json( Meta: Meta<Value<M>, M> ) -> Result<Meta<Self, M>, Meta<InvalidContext, M>>
impl<M: Copy> Copy for Type<M>
impl<M: Eq> Eq for Type<M>
impl<M> StructuralEq for Type<M>
impl<M> StructuralPartialEq for Type<M>
Auto Trait Implementations§
impl<M> RefUnwindSafe for Type<M>where M: RefUnwindSafe,
impl<M> Send for Type<M>where M: Send,
impl<M> Sync for Type<M>where M: Sync,
impl<M> Unpin for Type<M>where M: Unpin,
impl<M> UnwindSafe for Type<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.