pub enum LabelContext {
Section {
title: String,
},
Float {
env: String,
caption: Option<String>,
},
Theorem {
env: String,
description: Option<String>,
},
Equation,
Item,
}Expand description
What a \label at some offset labels: the classification driving label
hover (kind + nearest heading/caption). Like OutlineItem, LSP-agnostic
and classified from the curated signature::builtin DB only.
Variants§
Section
Directly under a sectioning command; title is its heading text.
Float
Inside a float environment (figure, table, …); caption is the
text of a \caption in that float, when present.
Theorem
Inside a theorem-like environment; description is the optional
\begin{thm}[…] argument, when present.
Equation
Inside math ($…$, \[…\], or a math environment).
Item
Inside a list environment (enumerate, itemize, …).
Trait Implementations§
Source§impl Clone for LabelContext
impl Clone for LabelContext
Source§fn clone(&self) -> LabelContext
fn clone(&self) -> LabelContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LabelContext
impl Debug for LabelContext
impl Eq for LabelContext
Source§impl PartialEq for LabelContext
impl PartialEq for LabelContext
impl StructuralPartialEq for LabelContext
Auto Trait Implementations§
impl Freeze for LabelContext
impl RefUnwindSafe for LabelContext
impl Send for LabelContext
impl Sync for LabelContext
impl Unpin for LabelContext
impl UnsafeUnpin for LabelContext
impl UnwindSafe for LabelContext
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