Skip to main content

encode_tick_rule_array

Function encode_tick_rule_array 

Source
pub fn encode_tick_rule_array(
    arr: &[i32],
) -> Result<String, MicrostructuralError>
Expand description

Encodes tick signs as letters, 1 → 'a', -1 → 'b', 0 → 'c' (AFML §18.5). See the module example.

§Errors

MicrostructuralError::UnknownTickRule for any other value.