Struct json_ld_syntax::context::definition::TermBinding
source · pub struct TermBinding<M, C = Value<M>> {
pub key_metadata: M,
pub definition: Meta<Nullable<TermDefinition<M, C>>, M>,
}
Expand description
Term binding.
Fields§
§key_metadata: M
§definition: Meta<Nullable<TermDefinition<M, C>>, M>
Implementations§
source§impl<M, C> TermBinding<M, C>
impl<M, C> TermBinding<M, C>
pub fn new( key_metadata: M, definition: Meta<Nullable<TermDefinition<M, C>>, M> ) -> Self
Trait Implementations§
source§impl<M: Clone, C: Clone> Clone for TermBinding<M, C>
impl<M: Clone, C: Clone> Clone for TermBinding<M, C>
source§fn clone(&self) -> TermBinding<M, C>
fn clone(&self) -> TermBinding<M, C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, M: Clone, C> From<&'a TermBinding<M, C>> for TermBindingRef<'a, M, C>
impl<'a, M: Clone, C> From<&'a TermBinding<M, C>> for TermBindingRef<'a, M, C>
source§fn from(b: &'a TermBinding<M, C>) -> Self
fn from(b: &'a TermBinding<M, C>) -> Self
Converts to this type from the input type.
source§impl<M: PartialEq, C: PartialEq> PartialEq<TermBinding<M, C>> for TermBinding<M, C>
impl<M: PartialEq, C: PartialEq> PartialEq<TermBinding<M, C>> for TermBinding<M, C>
source§fn eq(&self, other: &TermBinding<M, C>) -> bool
fn eq(&self, other: &TermBinding<M, C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<M, C: StrippedPartialEq<__C>, __M, __C> StrippedPartialEq<TermBinding<__M, __C>> for TermBinding<M, C>
impl<M, C: StrippedPartialEq<__C>, __M, __C> StrippedPartialEq<TermBinding<__M, __C>> for TermBinding<M, C>
fn stripped_eq(&self, other: &TermBinding<__M, __C>) -> bool
impl<M: Eq, C: Eq> Eq for TermBinding<M, C>
impl<M, C> StructuralEq for TermBinding<M, C>
impl<M, C> StructuralPartialEq for TermBinding<M, C>
Auto Trait Implementations§
impl<M, C> RefUnwindSafe for TermBinding<M, C>where C: RefUnwindSafe, M: RefUnwindSafe,
impl<M, C> Send for TermBinding<M, C>where C: Send, M: Send,
impl<M, C> Sync for TermBinding<M, C>where C: Sync, M: Sync,
impl<M, C> Unpin for TermBinding<M, C>where M: Unpin,
impl<M, C> UnwindSafe for TermBinding<M, C>where C: UnwindSafe, M: 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.