Skip to main content

register_tick_scheme

Function register_tick_scheme 

Source
pub fn register_tick_scheme(
    name: &str,
    scheme: TickScheme,
) -> Result<(), TickSchemeError>
Expand description

Registers a named tick scheme for the lifetime of the process.

Names are trimmed and matched without regard to ASCII case. Registered names, including built-in names and aliases, cannot be replaced or removed.

ยงErrors

Returns an error if the name is invalid or already registered.