pub const fn direction(dir: Direction) -> &'static str
Format a Direction as "up" / "down" / "either".
Direction
"up"
"down"
"either"
Direction is #[non_exhaustive]; unrecognised variants fall back to "either".
#[non_exhaustive]