pub struct GlossaryDef {
pub key: SmolStr,
pub kind: GlossaryDefKind,
pub range: TextRange,
pub key_range: TextRange,
}Expand description
A glossary/acronym key definition site (\newglossaryentry{key}{…},
\newacronym[opts]{key}{short}{long}, …). The definition-side analog of
LabelDef; the reference side (\gls{key}) is classified directly off the
CST by completion and carries no stored model record yet.
Fields§
§key: SmolStrThe entry key, as authored.
kind: GlossaryDefKind§range: TextRangeRange of the command through its key group (like LabelDef::range) —
the navigation target for a future go-to-definition.
key_range: TextRangeRange of just the trimmed key text inside the braces — the precise span a future rename would rewrite.
Trait Implementations§
Source§impl Clone for GlossaryDef
impl Clone for GlossaryDef
Source§fn clone(&self) -> GlossaryDef
fn clone(&self) -> GlossaryDef
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 GlossaryDef
impl Debug for GlossaryDef
impl Eq for GlossaryDef
Source§impl PartialEq for GlossaryDef
impl PartialEq for GlossaryDef
impl StructuralPartialEq for GlossaryDef
Auto Trait Implementations§
impl Freeze for GlossaryDef
impl RefUnwindSafe for GlossaryDef
impl Send for GlossaryDef
impl Sync for GlossaryDef
impl Unpin for GlossaryDef
impl UnsafeUnpin for GlossaryDef
impl UnwindSafe for GlossaryDef
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