Expand description
Code common to structs, unions, and enum variants.
Structsยง
- Rendered
Literal ๐ - A rendered struct, union, or enum variant, split into fields for actual
auto-completion (
literal, usingfield: ()) and display in the completions menu (detail, usingfield: type).
Functionsยง
- format_
literal_ ๐label - Format a struct, etc. literal option for display in the completions menu.
- format_
literal_ ๐lookup - Format a struct, etc. literal option for lookup used in completions filtering.
- render_
record_ ๐lit - Render a record type (or sub-type) to a
RenderedCompound. UseNonefor thenameargument for an anonymous type. - render_
tuple_ ๐lit - Render a tuple type (or sub-type) to a
RenderedCompound. UseNonefor thenameargument for an anonymous type. - visible_
fields ๐ - Find all the visible fields in a given list. Returns the list of visible
fields, plus a boolean for whether the list is comprehensive (contains no
private fields and its item is not marked
#[non_exhaustive]).