Func

Trait Func 

Source
pub trait Func {
    const NAME: &'static str;
    const FIELD_NAMES: &'static [&'static str];
    const DEFAULT_NUM_POS_ARG: usize = 0;
}
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 = 0

When printing, the number of arguments to print positionally.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> Func for Adjust<'a>

Source§

const NAME: &'static str = "todo"

Source§

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

Source§

const DEFAULT_NUM_POS_ARG: usize = 0

Source§

impl<'a> Func for Chars<'a>

Source§

const NAME: &'static str = "todo"

Source§

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

Source§

const DEFAULT_NUM_POS_ARG: usize = 1

Source§

impl<'a> Func for Discretionary<'a>

Source§

const NAME: &'static str = "todo"

Source§

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

Source§

const DEFAULT_NUM_POS_ARG: usize = 0

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 = 3

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 = 0

Source§

impl<'a> Func for Insertion<'a>

Source§

const NAME: &'static str = "todo"

Source§

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

Source§

const DEFAULT_NUM_POS_ARG: usize = 1

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 = 1

Source§

impl<'a> Func for Ligature<'a>

Source§

const NAME: &'static str = "todo"

Source§

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

Source§

const DEFAULT_NUM_POS_ARG: usize = 2

Source§

impl<'a> Func for Mark<'a>

Source§

const NAME: &'static str = "todo"

Source§

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

Source§

const DEFAULT_NUM_POS_ARG: usize = 0

Source§

impl<'a> Func for Math<'a>

Source§

const NAME: &'static str = "todo"

Source§

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

Source§

const DEFAULT_NUM_POS_ARG: usize = 1

Source§

impl<'a> Func for Penalty<'a>

Source§

const NAME: &'static str = "todo"

Source§

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

Source§

const DEFAULT_NUM_POS_ARG: usize = 1

Source§

impl<'a> Func for Rule<'a>

Source§

const NAME: &'static str = "todo"

Source§

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

Source§

const DEFAULT_NUM_POS_ARG: usize = 3

Source§

impl<'a> Func for Vlist<'a>

Source§

const NAME: &'static str = "todo"

Source§

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

Source§

const DEFAULT_NUM_POS_ARG: usize = 0