rich

Source-derived package reference

Browse namespaces and declarations, or search names, types and documentation. All artifacts work offline.

Global namespace

Functions

main
fn main()

Executes representative generic, imported, default and overloaded paths.

demo

Structs

Envelope
struct demo::Envelope<T>

A generic envelope with an imported token.

Enums

Outcome
enum demo::Outcome<T>

A result with optional payload, expressed as a Goose enum.

Aliass

Token
type demo::Token = helpers::Token

A local alias for an imported type. Source spelling remains available.

Functions

apply
fn demo::apply<F: fn(i64)>(value: i64)

A declared documentation bound, retained without inventing extra constraints.

echo
fn demo::echo(value)

An untyped generic parameter and an unspecified source result annotation.

exported_plus
export fn demo::exported_plus(value: i64) -> i64

Native export metadata is distinct from package visibility.

identity
fn demo::identity<T>(value: T) -> T

Return a value unchanged. Works with [Envelope](item:demo::Envelope).

pass_token
fn demo::pass_token(token: helpers::Token) -> helpers::Token

Accept and return the imported token through a local alias.

score
fn demo::score(value: f64) -> f64

Floating overload. Adds one half.

score
fn demo::score(value: i64) -> i64

Integer overload. Adds one.

with_default
fn demo::with_default(value: i64, extra: i64 = ...) -> i64

A defaulted argument; the LSP deliberately renders its value as `...`.

Constants

answer
let demo::answer: i64

An inferred global type, as reported by the compiler.

Variables

counter
var demo::counter: i64

A mutable global binding.

helpers

Structs

Token
struct helpers::Token

An imported token. Unicode text: café, λ.

Functions

twice
fn helpers::twice(value: i64) -> i64

Twice the input, from a separately imported source file.

Documentation scope

Global namespaces; no Rust-style package visibility. export fn marks a native interface.

  • Only top-level functions, structs, enums, aliases, globals and named fields/variants are indexed. Nested functions, padding and compiler builtins are omitted.
  • Namespaces are grouping metadata; namespace documentation and import aliases are not declaration items.
  • Signatures use the LSP type renderer: resolved alias uses may expand and parameter/field defaults render as '= ...'. Linked source retains original spelling.
  • Missing result annotations remain unspecified, untyped parameters have null types. No inferred lifetimes, visibility or constraints are invented.
  • Markdown renders paragraphs, headings, fenced code, unordered lists, emphasis, inline code and explicit links. Raw HTML, tables and automatic reference links are not rendered.
  • Search is lexical substring matching with AND filters, not fuzzy matching, type unification, signature solving or semantic search.