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