pub enum EntryRef<'a> {
Base(Nullable<&'a IriRefBuf>),
Import(&'a IriRefBuf),
Language(Nullable<&'a LenientLangTagBuf>),
Direction(Nullable<Direction>),
Propagate(bool),
Protected(bool),
Type(Type),
Version(Version),
Vocab(Nullable<&'a Vocab>),
Definition(&'a Key, Nullable<&'a TermDefinition>),
}Expand description
Entry of a context definition, key and value together.
Variants§
Base(Nullable<&'a IriRefBuf>)
The @base entry, setting the base IRI against which relative IRIs are resolved.
Import(&'a IriRefBuf)
The @import entry, referencing a context to merge into this one.
Language(Nullable<&'a LenientLangTagBuf>)
The @language entry, tagging string values with a language.
Direction(Nullable<Direction>)
The @direction entry, setting the base direction of string values.
Propagate(bool)
The @propagate entry, controlling whether the context survives into node objects.
Protected(bool)
The @protected entry, forbidding redefinition of the terms defined here.
Type(Type)
The @type entry, setting how the node types of the described documents
are laid out and whether that setting is protected.
Version(Version)
The @version entry, declaring the processing mode.
Vocab(Nullable<&'a Vocab>)
The @vocab entry, setting the vocabulary against which terms expand.
Definition(&'a Key, Nullable<&'a TermDefinition>)
A term binding: the term and the definition bound to it.
Implementations§
Source§impl<'a> EntryRef<'a>
impl<'a> EntryRef<'a>
Sourcepub fn into_key(self) -> EntryKeyRef<'a>
pub fn into_key(self) -> EntryKeyRef<'a>
Returns the key of this entry, taking self by value.
Sourcepub fn key(&self) -> EntryKeyRef<'a>
pub fn key(&self) -> EntryKeyRef<'a>
Returns the key of this entry.
Sourcepub fn into_value(self) -> EntryValueRef<'a>
pub fn into_value(self) -> EntryValueRef<'a>
Returns the value of this entry, taking self by value.
Sourcepub fn value(&self) -> EntryValueRef<'a>
pub fn value(&self) -> EntryValueRef<'a>
Returns the value of this entry.
Sourcepub fn into_key_value(self) -> (EntryKeyRef<'a>, EntryValueRef<'a>)
pub fn into_key_value(self) -> (EntryKeyRef<'a>, EntryValueRef<'a>)
Returns the key and value of this entry, taking self by value.
Sourcepub fn key_value(&self) -> (EntryKeyRef<'a>, EntryValueRef<'a>)
pub fn key_value(&self) -> (EntryKeyRef<'a>, EntryValueRef<'a>)
Returns the key and value of this entry.
Auto Trait Implementations§
impl<'a> Freeze for EntryRef<'a>
impl<'a> RefUnwindSafe for EntryRef<'a>
impl<'a> Send for EntryRef<'a>
impl<'a> Sync for EntryRef<'a>
impl<'a> Unpin for EntryRef<'a>
impl<'a> UnsafeUnpin for EntryRef<'a>
impl<'a> UnwindSafe for EntryRef<'a>
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Unordered reference.