Crate workspacer_syntax

Source

Structs§

EnumSignatureGenerator
FnSignatureGenerator
MacroRulesSignatureGenerator
SignatureOptions
Control how we generate a signature string.
SignatureOptionsBuilder
Builder for SignatureOptions.
StructSignatureGenerator
TraitSignatureGenerator
TypeAliasSignatureGenerator

Enums§

SignatureOptionsBuilderError
Error type for SignatureOptionsBuilder

Traits§

GenerateSignature
A trait to generate a textual “signature” (or declaration line(s)) for different AST nodes (Fn, Struct, Enum, etc.), possibly with doc lines, etc.
RehydrateFromSignature

Functions§

extract_docs
Extract doc lines from /// or /** ... */. We do NOT gather #[doc="..."] attributes here. Those can be handled separately if you want to unify them.
is_node_public
Check if a node is “public,” e.g. pub fn, pub struct, or #[macro_export].
post_process_spacing
Minimal post-processing to ensure correct spacing around arrows, where clauses, etc.