pub enum EntryRef<'a, T> {
Value(ValueEntryRef<'a>),
Type(TypeRef<'a, T>),
Language(&'a LenientLangTag),
Direction(Direction),
}Expand description
Entry of a value object, key and value together.
Variants§
Value(ValueEntryRef<'a>)
The @value entry, holding the literal value.
Type(TypeRef<'a, T>)
The @type entry, giving the type of the node or the values.
Language(&'a LenientLangTag)
The @language entry, tagging string values with a language.
Direction(Direction)
The @direction entry, setting the base direction of string values.
Implementations§
Source§impl<'a, T> EntryRef<'a, T>
impl<'a, T> EntryRef<'a, T>
Sourcepub fn into_value(self) -> EntryValueRef<'a, T>
pub fn into_value(self) -> EntryValueRef<'a, T>
Consumes this EntryRef, returning its value.
Sourcepub fn value(&self) -> EntryValueRef<'a, T>
pub fn value(&self) -> EntryValueRef<'a, T>
Returns the value of this EntryRef.
Trait Implementations§
impl<'a, T> Copy for EntryRef<'a, T>
Source§impl<T, N: IriVocabulary<Iri = T>> PrecomputeSizeWithContext<N> for EntryRef<'_, T>
impl<T, N: IriVocabulary<Iri = T>> PrecomputeSizeWithContext<N> for EntryRef<'_, T>
Source§impl<T, N: IriVocabulary<Iri = T>> PrintWithSizeAndContext<N> for EntryRef<'_, T>
impl<T, N: IriVocabulary<Iri = T>> PrintWithSizeAndContext<N> for EntryRef<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for EntryRef<'a, T>
impl<'a, T> RefUnwindSafe for EntryRef<'a, T>where
TypeRef<'a, T>: RefUnwindSafe,
impl<'a, T> Send for EntryRef<'a, T>
impl<'a, T> Sync for EntryRef<'a, T>
impl<'a, T> Unpin for EntryRef<'a, T>
impl<'a, T> UnsafeUnpin for EntryRef<'a, T>where
TypeRef<'a, T>: UnsafeUnpin,
impl<'a, T> UnwindSafe for EntryRef<'a, T>where
TypeRef<'a, T>: UnwindSafe,
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.