Enum json_ld::context::TermDefinitionRef
source · pub enum TermDefinitionRef<'a, T, B, C, M> {
Type(&'a TypeTermDefinition),
Normal(&'a NormalTermDefinition<T, B, C, M>),
}
Expand description
Term definition reference.
Variants§
Type(&'a TypeTermDefinition)
@type
definition.
Normal(&'a NormalTermDefinition<T, B, C, M>)
Normal definition.
Implementations§
source§impl<'a, T, B, C, M> TermDefinitionRef<'a, T, B, C, M>
impl<'a, T, B, C, M> TermDefinitionRef<'a, T, B, C, M>
pub fn modulo_protected_field( &self ) -> ModuloProtected<TermDefinitionRef<'a, T, B, C, M>>
pub fn value(&self) -> Option<&'a Term<T, B>>
pub fn prefix(&self) -> bool
pub fn protected(&self) -> bool
pub fn reverse_property(&self) -> bool
pub fn base_url(&self) -> Option<&'a T>
pub fn context(&self) -> Option<&'a Entry<C, M>>
pub fn container(&self) -> Container
pub fn direction(&self) -> Option<Nullable<Direction>>
pub fn index(&self) -> Option<&'a Entry<Index, M>>
pub fn language(&self) -> Option<&'a Nullable<LenientLanguageTagBuf>>
pub fn nest(&self) -> Option<&'a Entry<Nest, M>>
pub fn typ(&self) -> Option<&'a Type<T>>
Trait Implementations§
source§impl<'a, T, B, C, M> Clone for TermDefinitionRef<'a, T, B, C, M>
impl<'a, T, B, C, M> Clone for TermDefinitionRef<'a, T, B, C, M>
source§fn clone(&self) -> TermDefinitionRef<'a, T, B, C, M>
fn clone(&self) -> TermDefinitionRef<'a, T, B, C, M>
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, T, B, C, M> PartialEq<TermDefinitionRef<'a, T, B, C, M>> for TermDefinitionRef<'a, T, B, C, M>where
T: PartialEq<T>,
B: PartialEq<B>,
C: PartialEq<C>,
M: PartialEq<M>,
impl<'a, T, B, C, M> PartialEq<TermDefinitionRef<'a, T, B, C, M>> for TermDefinitionRef<'a, T, B, C, M>where T: PartialEq<T>, B: PartialEq<B>, C: PartialEq<C>, M: PartialEq<M>,
source§fn eq(&self, other: &TermDefinitionRef<'a, T, B, C, M>) -> bool
fn eq(&self, other: &TermDefinitionRef<'a, T, B, C, M>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, T, B, C, M, __C, __M> StrippedPartialEq<TermDefinitionRef<'a, T, B, __C, __M>> for TermDefinitionRef<'a, T, B, C, M>where
T: PartialEq<T>,
B: PartialEq<B>,
C: StrippedPartialEq<__C>,
M: StrippedPartialEq<__M>,
impl<'a, T, B, C, M, __C, __M> StrippedPartialEq<TermDefinitionRef<'a, T, B, __C, __M>> for TermDefinitionRef<'a, T, B, C, M>where T: PartialEq<T>, B: PartialEq<B>, C: StrippedPartialEq<__C>, M: StrippedPartialEq<__M>,
fn stripped_eq(&self, other: &TermDefinitionRef<'a, T, B, __C, __M>) -> bool
impl<'a, T, B, C, M> Copy for TermDefinitionRef<'a, T, B, C, M>
impl<'a, T, B, C, M> Eq for TermDefinitionRef<'a, T, B, C, M>where T: Eq, B: Eq, C: Eq, M: Eq,
impl<'a, T, B, C, M> StrippedEq for TermDefinitionRef<'a, T, B, C, M>where T: Eq, B: Eq, C: StrippedEq, M: StrippedEq,
impl<'a, T, B, C, M> StructuralEq for TermDefinitionRef<'a, T, B, C, M>
impl<'a, T, B, C, M> StructuralPartialEq for TermDefinitionRef<'a, T, B, C, M>
Auto Trait Implementations§
impl<'a, T, B, C, M> RefUnwindSafe for TermDefinitionRef<'a, T, B, C, M>where B: RefUnwindSafe, C: RefUnwindSafe, M: RefUnwindSafe, T: RefUnwindSafe,
impl<'a, T, B, C, M> Send for TermDefinitionRef<'a, T, B, C, M>where B: Sync, C: Sync, M: Sync, T: Sync,
impl<'a, T, B, C, M> Sync for TermDefinitionRef<'a, T, B, C, M>where B: Sync, C: Sync, M: Sync, T: Sync,
impl<'a, T, B, C, M> Unpin for TermDefinitionRef<'a, T, B, C, M>
impl<'a, T, B, C, M> UnwindSafe for TermDefinitionRef<'a, T, B, C, M>where B: RefUnwindSafe, C: RefUnwindSafe, M: RefUnwindSafe, T: RefUnwindSafe,
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
§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.