pub struct SymbolInfo {
pub var_type: VarType,
pub decl_span: Span,
pub ref_spans: Vec<Span>,
pub domain_summary: Option<String>,
}Expand description
Information about a single declared variable.
Fields§
§var_type: VarTypeThe variable’s declared type.
decl_span: SpanSpan of the name token in the variables block (declaration site).
ref_spans: Vec<Span>All spans where this name appears as a reference (domains, constraints, exprs).
domain_summary: Option<String>Human-readable domain summary for hover display (e.g. “duration = 3, start in 0..10”).
Trait Implementations§
Source§impl Clone for SymbolInfo
impl Clone for SymbolInfo
Source§fn clone(&self) -> SymbolInfo
fn clone(&self) -> SymbolInfo
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 moreAuto Trait Implementations§
impl Freeze for SymbolInfo
impl RefUnwindSafe for SymbolInfo
impl Send for SymbolInfo
impl Sync for SymbolInfo
impl Unpin for SymbolInfo
impl UnsafeUnpin for SymbolInfo
impl UnwindSafe for SymbolInfo
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