#[non_exhaustive]pub enum IndexTermKind {
Flow(String),
Concealed {
term: String,
secondary: Option<String>,
tertiary: Option<String>,
},
}Expand description
The kind of index term, encoding both visibility and structure.
This enum makes invalid states unrepresentable: flow terms can only have a single term (no hierarchy), while concealed terms support up to three hierarchical levels.
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(String)
Visible in output, single term only.
Created by ((term)) or indexterm2:[term].
Concealed
Hidden from output, supports hierarchical entries.
Created by (((term,secondary,tertiary))) or indexterm:[term,secondary,tertiary].
Trait Implementations§
Source§impl Clone for IndexTermKind
impl Clone for IndexTermKind
Source§fn clone(&self) -> IndexTermKind
fn clone(&self) -> IndexTermKind
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 Debug for IndexTermKind
impl Debug for IndexTermKind
Source§impl<'de> Deserialize<'de> for IndexTermKind
impl<'de> Deserialize<'de> for IndexTermKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IndexTermKind
impl PartialEq for IndexTermKind
Source§impl Serialize for IndexTermKind
impl Serialize for IndexTermKind
impl StructuralPartialEq for IndexTermKind
Auto Trait Implementations§
impl Freeze for IndexTermKind
impl RefUnwindSafe for IndexTermKind
impl Send for IndexTermKind
impl Sync for IndexTermKind
impl Unpin for IndexTermKind
impl UnwindSafe for IndexTermKind
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