pub struct SymbolMeta {
pub doc: Option<String>,
pub kind: ExternalKind,
pub returns: Option<ResolvedType>,
pub params: Vec<ResolvedParam>,
pub value: Option<ValueMeta>,
pub group_widgets: Vec<ArgGroupWidget>,
}Expand description
Per-symbol merged metadata (docs, types, values), surfaced to the IDE and
used by the call-site checks. Keyed by the symbol’s DefinitionId on the
AnalysisResult. For externals this merges inline docs with the registered
host manifest; knots/stitches carry inline docs only; VAR/CONST add an
inferred initializer value.
Fields§
§doc: Option<String>Free-text documentation.
kind: ExternalKindPresentation/effect category (informational; externals only —
Plain everywhere else).
returns: Option<ResolvedType>Resolved return type, if specified.
params: Vec<ResolvedParam>Resolved parameter types, by ink declaration order.
value: Option<ValueMeta>Initializer-derived value info (VAR/CONST only).
group_widgets: Vec<ArgGroupWidget>Arg-group widgets declared on the external (argument-widget spec §2); empty for non-externals.
Trait Implementations§
Source§impl Clone for SymbolMeta
impl Clone for SymbolMeta
Source§fn clone(&self) -> SymbolMeta
fn clone(&self) -> SymbolMeta
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 SymbolMeta
impl Debug for SymbolMeta
Source§impl Default for SymbolMeta
impl Default for SymbolMeta
Source§fn default() -> SymbolMeta
fn default() -> SymbolMeta
Returns the “default value” for a type. Read more
impl Eq for SymbolMeta
Source§impl PartialEq for SymbolMeta
impl PartialEq for SymbolMeta
Source§fn eq(&self, other: &SymbolMeta) -> bool
fn eq(&self, other: &SymbolMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SymbolMeta
Auto Trait Implementations§
impl Freeze for SymbolMeta
impl RefUnwindSafe for SymbolMeta
impl Send for SymbolMeta
impl Sync for SymbolMeta
impl Unpin for SymbolMeta
impl UnsafeUnpin for SymbolMeta
impl UnwindSafe for SymbolMeta
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