Skip to main content

TreeFormatter

Trait TreeFormatter 

Source
pub trait TreeFormatter: Send + Sync {
    // Required method
    fn format(
        &self,
        filtered_tree: Option<&Value>,
        phone_state: &Value,
        screen_width: i32,
        screen_height: i32,
        use_normalized: bool,
    ) -> (String, String, Vec<Element>, PhoneState);
}
Expand description

Trait for formatting filtered trees.

Required Methods§

Source

fn format( &self, filtered_tree: Option<&Value>, phone_state: &Value, screen_width: i32, screen_height: i32, use_normalized: bool, ) -> (String, String, Vec<Element>, PhoneState)

Format filtered tree to standard output format.

Returns (formatted_text, focused_text, elements, phone_state).

Implementors§