pub enum FragmentRef<'a> {
Entry(EntryRef<'a>),
Key(EntryKey),
Value(EntryValueRef<'a>),
ContainerFragment(&'a ContainerKind),
}Expand description
Fragment of a term definition.
Variants§
Entry(EntryRef<'a>)
An entry of the definition, key and value together.
Key(EntryKey)
The key of an entry of the definition.
Value(EntryValueRef<'a>)
The value of an entry of the definition.
ContainerFragment(&'a ContainerKind)
One item of an array-valued @container entry.
Implementations§
Source§impl<'a> FragmentRef<'a>
impl<'a> FragmentRef<'a>
Sourcepub fn is_entry(&self) -> bool
pub fn is_entry(&self) -> bool
Checks whether this fragment is an entry, key and value together.
Sourcepub fn sub_fragments(&self) -> SubFragments<'a> ⓘ
pub fn sub_fragments(&self) -> SubFragments<'a> ⓘ
Returns an iterator over the fragments directly contained in this one.
Auto Trait Implementations§
impl<'a> Freeze for FragmentRef<'a>
impl<'a> RefUnwindSafe for FragmentRef<'a>
impl<'a> Send for FragmentRef<'a>
impl<'a> Sync for FragmentRef<'a>
impl<'a> Unpin for FragmentRef<'a>
impl<'a> UnsafeUnpin for FragmentRef<'a>
impl<'a> UnwindSafe for FragmentRef<'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
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.