Skip to main content

direction

Function direction 

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

Format a Direction as "up" / "down" / "either".

Direction is #[non_exhaustive]; unrecognised variants fall back to "either".