Skip to content

struct

Signature

pub struct Signature {
    pub name: &'static str,
    pub usage: &'static str,
    pub min: usize,
    pub max: usize,
    pub lambdas: &'static [(usize, usize)],
    pub doc: &'static str,
}

A standard function's shape.

Fields

name

pub name: &'static str

The function's name.

usage

pub usage: &'static str

How it's written, for completion and hovers.

min

pub min: usize

Arguments, counting a pipe's left side.

max

pub max: usize

The most arguments, counting a pipe's left side.

lambdas

pub lambdas: &'static [(usize, usize)]

(argument, parameters): arguments that are lambdas, and the most parameters each takes (a second one is the item's index).

doc

pub doc: &'static str

What it does, for hovers and the reference.

Trait implementations