Enum json_ld::context::TermDefinitionRef
source · [−]pub enum TermDefinitionRef<'a, T, B, C, M> {
Type(&'a TypeTermDefinition),
Normal(&'a NormalTermDefinition<T, B, C, M>),
}
Variants
Type(&'a TypeTermDefinition)
Normal(&'a NormalTermDefinition<T, B, C, M>)
Implementations
sourceimpl<'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
sourceimpl<'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>
sourcefn 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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'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>,
sourcefn eq(&self, other: &TermDefinitionRef<'a, T, B, C, M>) -> bool
fn eq(&self, other: &TermDefinitionRef<'a, T, B, C, M>) -> bool
sourceimpl<'a, T, B, 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> 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
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.