#[non_exhaustive]pub enum IndexTermKind<'a> {
Flow(&'a str),
Concealed {
term: &'a str,
secondary: Option<&'a str>,
tertiary: Option<&'a str>,
},
}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(&'a str)
Visible in output, single term only.
Concealed
Hidden from output, supports hierarchical entries.
Trait Implementations§
Source§impl<'a> Clone for IndexTermKind<'a>
impl<'a> Clone for IndexTermKind<'a>
Source§fn clone(&self) -> IndexTermKind<'a>
fn clone(&self) -> IndexTermKind<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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