Enum json_ld_core::context::BindingRef
source · pub enum BindingRef<'a, T, B, L, M> {
Normal(&'a Key, &'a NormalTermDefinition<T, B, L, M>),
Type(&'a TypeTermDefinition),
}
Expand description
Term binding reference.
Variants§
Normal(&'a Key, &'a NormalTermDefinition<T, B, L, M>)
Normal term definition.
Type(&'a TypeTermDefinition)
@type
term definition.
Implementations§
source§impl<'a, T, B, L, M> BindingRef<'a, T, B, L, M>
impl<'a, T, B, L, M> BindingRef<'a, T, B, L, M>
sourcepub fn term(&self) -> KeyOrTypeRef<'a>
pub fn term(&self) -> KeyOrTypeRef<'a>
Returns a reference to the bound term.
sourcepub fn definition(&self) -> TermDefinitionRef<'a, T, B, L, M>
pub fn definition(&self) -> TermDefinitionRef<'a, T, B, L, M>
Returns a reference to the bound term definition.
Auto Trait Implementations§
impl<'a, T, B, L, M> RefUnwindSafe for BindingRef<'a, T, B, L, M>where B: RefUnwindSafe, L: RefUnwindSafe, M: RefUnwindSafe, T: RefUnwindSafe,
impl<'a, T, B, L, M> Send for BindingRef<'a, T, B, L, M>where B: Sync, L: Sync, M: Sync, T: Sync,
impl<'a, T, B, L, M> Sync for BindingRef<'a, T, B, L, M>where B: Sync, L: Sync, M: Sync, T: Sync,
impl<'a, T, B, L, M> Unpin for BindingRef<'a, T, B, L, M>
impl<'a, T, B, L, M> UnwindSafe for BindingRef<'a, T, B, L, M>where B: RefUnwindSafe, L: 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