pub struct LabelRef {
pub name: SmolStr,
pub command: RefCommand,
pub range: TextRange,
pub key_range: TextRange,
pub resolved: bool,
}Expand description
A reference use site — one per key. A \cref{a,b,c} produces three
LabelRefs, each carrying the same command kind and command range.
Fields§
§name: SmolStr§command: RefCommand§range: TextRangeRange of the enclosing command, shared by all keys split from one
\cref{a,b,c} — used for go-to-def / find-references navigation, which
jumps to the whole command.
key_range: TextRangeRange of just this key inside the braces (b in \cref{a,b}), trimmed of
surrounding whitespace. Unlike range, this is per-key, so
a rename rewrites exactly one key of a list command.
resolved: boolSet by the resolve pass when name matches a \label in this file.
Trait Implementations§
impl Eq for LabelRef
impl StructuralPartialEq for LabelRef
Auto Trait Implementations§
impl Freeze for LabelRef
impl RefUnwindSafe for LabelRef
impl Send for LabelRef
impl Sync for LabelRef
impl Unpin for LabelRef
impl UnsafeUnpin for LabelRef
impl UnwindSafe for LabelRef
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