pub enum EntryRef<'a> {
Id(Nullable<&'a Id>),
Type(Nullable<&'a Type>),
Context(&'a Context),
Reverse(&'a Key),
Index(&'a Index),
Language(Nullable<&'a LenientLangTagBuf>),
Direction(Nullable<Direction>),
Container(Nullable<&'a Container>),
Nest(&'a Nest),
Prefix(bool),
Propagate(bool),
Protected(bool),
}Expand description
Entry of an expanded term definition, key and value together.
Variants§
Id(Nullable<&'a Id>)
The @id entry, giving the IRI the term expands to.
Type(Nullable<&'a Type>)
The @type entry, giving the type of the values of the term.
Context(&'a Context)
The @context entry, holding a context scoped to the term.
Reverse(&'a Key)
The @reverse entry, mapping the term to a reverse property.
Index(&'a Index)
The @index entry, naming the property that carries the index of the
values in an index map.
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.
Container(Nullable<&'a Container>)
The @container entry, declaring the container the values of the term
are held in.
Nest(&'a Nest)
The @nest entry, naming the term under which this property is nested.
Prefix(bool)
The @prefix entry, allowing the term to be used as the prefix of a
compact IRI.
Propagate(bool)
The @propagate entry, controlling whether the context survives into node objects.
Protected(bool)
The @protected entry, forbidding redefinition of the term.
Implementations§
Source§impl<'a> EntryRef<'a>
impl<'a> EntryRef<'a>
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) -> (EntryKey, EntryValueRef<'a>)
pub fn into_key_value(self) -> (EntryKey, EntryValueRef<'a>)
Returns the key and value of this entry, taking self by value.
Sourcepub fn key_value(&self) -> (EntryKey, EntryValueRef<'a>)
pub fn key_value(&self) -> (EntryKey, EntryValueRef<'a>)
Returns the key and value of this entry.
Trait Implementations§
Source§impl PrecomputeSize for EntryRef<'_>
impl PrecomputeSize for EntryRef<'_>
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.