Skip to content

Rust API index

Public functions indexed

This is a navigational API index, not source documentation. It lists the public callable surface of the six reusable library crates in the workspace; command-line and language-server binaries are documented in their dedicated references.

Function Purpose
parse_source Tokenize and strictly parse a complete source file
parse_source_tolerant Parse while returning recoverable diagnostics
lexer::tokenize Convert source text into trivia-bearing tokens
parser::parse Strictly parse a prepared token stream
parser::parse_tolerant Tolerantly parse a prepared token stream
Parser::parse_expr Parse one expression from parser state
defines::collect_defines Build a define table from tokens
DefineTable::entries Return defines in source order
DefineTable::all Return every definition for a macro name
DefineTable::latest Return the last active definition for a name
Type Public methods
LineIndex new, line_count, line_col, offset, line_range
TextRange new, empty, len, is_empty, contains, as_range
Token is_kw, is_sym, is_macro, has_macro_args, is_base_only_number
TokenKind is_keyword
Type Public methods
ImportPath text
Module end_kw
DataType is_implicit, params, inline
VirtualKw text
CallComments is_empty
WithComments is_empty
Function Purpose
format_source Format a complete source string
format_range Format only items selected by line ranges
verify_equivalence Confirm normalized syntax is unchanged
verify_convergence Confirm a second formatting pass is identical
Function Purpose
doc::text Create a text document node
doc::group Create a width-sensitive group
doc::indent Nest document nodes by one indentation level
doc::concat Concatenate document nodes
doc::join Interleave document nodes with a separator
Printer::print Render a document tree to text
Module/type Public functions and methods
align plan, render, flat_width
fence fence_of, collect, region_at, protected_regions, is_protected
LineRanges new, parse, spans
range select, plan
Function Purpose
run Parse and lint source in one call
lint Run enabled rules against a prepared context
all_rules Return the complete rule registry
default_rules Return rules enabled without selection flags
rule_by_name Resolve a registered rule by stable name
select_rules Apply select/ignore names to the registry
rules_markdown Generate canonical Markdown rule documentation
Type Public methods
ParsedSource parse, lex_error, context
LintContext new, from_parse, with_tab_width, with_semantics, semantics, source, tokens, file, line_index, path, tab_width, line_text, touches_string, comments
Violation new, with_fix
Fix safe, unsafe_fix
Applicability as_str
module function apply_fixes
Function or type Public methods
analyze Build a semantic model for one parsed file
Semantics scopes, symbols, references, file_scope, scope, symbol, symbol_at, reference_at, reference_id_at, reference, definition_of, references_of, document_symbols, resolution_counts, file_span
Reference resolved, is_external_candidate, is_inherited_candidate
Import path, supplies
Scope lookup_local
Function or type Public methods
WorkspaceIndex build, files, path, units, member, members_of, defines, find_define, workspace_symbols, counts
resolve_external Resolve unresolved file references against a workspace index
ExternalTarget defs, best
ExternalResolutions get, iter, counts, definition_of
Function Purpose
prepare_rename Validate a cursor target and return its editable identity
rename Plan local or workspace-aware rename edits
find_references Collect local and cross-file reference locations
Function or type Public methods
add_port Add a port to a module interface
remove_port Remove a port from a module interface
propagate_ports Carry interface changes through instantiations
port_actions Discover valid port refactors at a cursor
may_have_port_action Cheaply preflight whether port actions are possible
module_definition Find a unique indexed module definition
module_names Search indexed module names
instantiation_plan Build an instantiation plan from an indexed module
PortAction label
InstantiationPlan instance_name, has_escaped_identifier, render, render_with
WorkspaceEdit file_count, edit_count, edits_for
Function or type Public methods
config::parse Parse strict lucisv configuration text
Discovery new, for_input, for_file, for_dir
filelist::read Resolve a nested EDA filelist
walk::collect_files Walk inputs with ignores and exclusions
walk::is_excluded Test a path against exclusion patterns
Function or type Public methods
content_hash Compute the cache’s FNV-1a content fingerprint
Cache load, disabled, is_clean, record, store