#[non_exhaustive]pub enum IndexTermKind<'a> {
Flow(Vec<InlineNode<'a>>),
Concealed {
term: Vec<InlineNode<'a>>,
secondary: Option<Vec<InlineNode<'a>>>,
tertiary: Option<Vec<InlineNode<'a>>>,
},
}Expand description
The kind of index term, encoding both visibility and structure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Flow(Vec<InlineNode<'a>>)
A single term that is visible in the document and included in the index.
Concealed
Hidden from output, supports hierarchical entries.
Fields
§
term: Vec<InlineNode<'a>>The primary inline label.
§
secondary: Option<Vec<InlineNode<'a>>>The secondary inline label, if present.
§
tertiary: Option<Vec<InlineNode<'a>>>The tertiary inline label, if present.
Trait Implementations§
Source§impl<'a> Clone for IndexTermKind<'a>
impl<'a> Clone for IndexTermKind<'a>
Source§impl<'a> Debug for IndexTermKind<'a>
impl<'a> Debug for IndexTermKind<'a>
Source§impl<'a> PartialEq for IndexTermKind<'a>
impl<'a> PartialEq for IndexTermKind<'a>
Source§impl<'a> Serialize for IndexTermKind<'a>
impl<'a> Serialize for IndexTermKind<'a>
impl<'a> StructuralPartialEq for IndexTermKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for IndexTermKind<'a>
impl<'a> RefUnwindSafe for IndexTermKind<'a>
impl<'a> Send for IndexTermKind<'a>
impl<'a> Sync for IndexTermKind<'a>
impl<'a> Unpin for IndexTermKind<'a>
impl<'a> UnsafeUnpin for IndexTermKind<'a>
impl<'a> UnwindSafe for IndexTermKind<'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