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
sourceimpl<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
sourceimpl<M: Clone, C: Clone> Clone for TermBinding<M, C>
impl<M: Clone, C: Clone> Clone for TermBinding<M, C>
sourcefn clone(&self) -> TermBinding<M, C>
fn clone(&self) -> TermBinding<M, C>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<M: Debug, C: Debug> Debug for TermBinding<M, C>
impl<M: Debug, C: Debug> Debug for TermBinding<M, C>
sourceimpl<'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>
sourcefn from(b: &'a TermBinding<M, C>) -> Self
fn from(b: &'a TermBinding<M, C>) -> Self
Converts to this type from the input type.
sourceimpl<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>
sourcefn eq(&self, other: &TermBinding<M, C>) -> bool
fn eq(&self, other: &TermBinding<M, C>) -> bool
sourceimpl<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
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.