pub struct Symbol {
pub id: SymbolId,
pub name: String,
pub kind: SymbolKind,
pub visibility: Visibility,
pub entry_points: Vec<EntryPoint>,
pub file: String,
pub line: u32,
pub span: ByteSpan,
pub signature: String,
}Expand description
A symbol definition found in a source file.
Fields§
§id: SymbolIdSCIP-aligned identity.
name: StringBare (unqualified) name, e.g. validate_token.
kind: SymbolKindElement kind.
visibility: VisibilityDeclared visibility (a neutral fact; consumers apply their own public/private policy).
entry_points: Vec<EntryPoint>Syntactic entry-point markers on this definition (route handlers, main,
…). A neutral fact set — empty for most symbols; consumers apply their own
attack-surface policy. See EntryPoint.
file: StringFile path relative to the project root.
line: u321-based line of the definition.
span: ByteSpanByte range of the whole definition in the source file.
signature: StringOne-line signature (declaration up to the body), whitespace-collapsed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnsafeUnpin for Symbol
impl UnwindSafe for Symbol
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