Skip to main content

direction_str

Function direction_str 

Source
pub fn direction_str(direction: Direction) -> &'static str
Expand description

Return a human-readable label for a budget Direction.

ยงExamples

use perfgate_types::Direction;
assert_eq!(perfgate_render::direction_str(Direction::Lower), "lower");
assert_eq!(perfgate_render::direction_str(Direction::Higher), "higher");