Trait boxworks_lang::ast::Func

source ·
pub trait Func {
    const NAME: &'static str;
    const FIELD_NAMES: &'static [&'static str];
    const DEFAULT_NUM_POS_ARG: usize = 0usize;
}
Expand description

A function like text or glue.

Required Associated Constants§

source

const NAME: &'static str

Name of the function.

source

const FIELD_NAMES: &'static [&'static str]

Ordered list of field names.

Provided Associated Constants§

source

const DEFAULT_NUM_POS_ARG: usize = 0usize

When printing, the number of arguments to print positionally.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a> Func for Glue<'a>

source§

const NAME: &'static str = "todo"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

const DEFAULT_NUM_POS_ARG: usize = 3usize

source§

impl<'a> Func for Hlist<'a>

source§

const NAME: &'static str = "todo"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

const DEFAULT_NUM_POS_ARG: usize = 0usize

source§

impl<'a> Func for Kern<'a>

source§

const NAME: &'static str = "todo"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

const DEFAULT_NUM_POS_ARG: usize = 1usize

source§

impl<'a> Func for Text<'a>

source§

const NAME: &'static str = "todo"

source§

const FIELD_NAMES: &'static [&'static str] = _

source§

const DEFAULT_NUM_POS_ARG: usize = 1usize