pub struct ProvidesDecl {
pub kind: ProvidesKind,
pub name: SmolStr,
pub info: Option<SmolStr>,
pub date: Option<SmolStr>,
pub version: Option<SmolStr>,
pub range: TextRange,
}Expand description
A \ProvidesPackage/Class/File (or its expl3 variant) self-identification.
The LaTeX2e form is \ProvidesPackage{name}[date version and other info]; the
bracket’s free text is kept verbatim in info, with a best-effort
split into date and version. The expl3 form
\ProvidesExplPackage{name}{date}{version}{description} fills the fields from its
four braced groups directly.
Fields§
§kind: ProvidesKind§name: SmolStr§info: Option<SmolStr>The raw [date version desc] bracket text (LaTeX2e form), or the description
group (expl3 form). None when absent.
date: Option<SmolStr>Best-effort release date (YYYY/MM/DD), split from info or the expl3 date
group.
version: Option<SmolStr>Best-effort version (a v-prefixed or digit-leading token), split from info
or the expl3 version group.
range: TextRangeThe \ProvidesPackage control-word token range — the hover anchor and the key
the LSP matches the cursor against.
Trait Implementations§
Source§impl Clone for ProvidesDecl
impl Clone for ProvidesDecl
Source§fn clone(&self) -> ProvidesDecl
fn clone(&self) -> ProvidesDecl
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more