# Function term::terminfo::parm::expand [−] [src]

    pub fn expand(
        cap: &[u8],
        params: &[Param],
        vars: &mut Variables
    ) -> Result<Vec<u8>, String>

🔬 This is a nightly-only experimental API. (`rustc_private`)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?

Expand a parameterized capability

# Arguments

- `cap` - string to expand
- `params` - vector of params for %p1 etc
- `vars` - Variables struct for %Pa etc

To be compatible with ncurses, `vars` should be the same between calls to `expand` for multiple capabilities for the same terminal.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)