MCPcopy Create free account
hub / github.com/Notgnoshi/generative / fmt

Method fmt

tools/bitwise.rs:125–137  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter)

Source from the content-addressed store, hash-verified

123
124impl std::fmt::Display for Neighbor {
125 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
126 match self {
127 // important: Should match clap::ValueEnum format
128 Neighbor::North => write!(f, "north"),
129 Neighbor::NorthEast => write!(f, "north-east"),
130 Neighbor::East => write!(f, "east"),
131 Neighbor::SouthEast => write!(f, "south-east"),
132 Neighbor::South => write!(f, "south"),
133 Neighbor::SouthWest => write!(f, "south-west"),
134 Neighbor::West => write!(f, "west"),
135 Neighbor::NorthWest => write!(f, "north-west"),
136 }
137 }
138}
139
140fn neighbor(x: i64, y: i64, n: Neighbor) -> (i64, i64) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected