Trait Encoding

Source
pub trait Encoding {
    // Required methods
    fn stage_by_prefix(&self, prefix: u8) -> Option<&Stage>;
    fn stage_by_value(&self, value: i64) -> Option<&Stage>;
}
Expand description

An implementation of Encoding is responsible for providing a Stage for the provided value or prefix.

Required Methods§

Source

fn stage_by_prefix(&self, prefix: u8) -> Option<&Stage>

Returns a reference to the Stage corresponding to the prefix.

Source

fn stage_by_value(&self, value: i64) -> Option<&Stage>

Returns a reference to the Stage which range contains the value.

Implementations on Foreign Types§

Source§

impl<E: Encoding + ?Sized> Encoding for &E

Source§

fn stage_by_prefix(&self, prefix: u8) -> Option<&Stage>

Source§

fn stage_by_value(&self, value: i64) -> Option<&Stage>

Implementors§