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.