pub trait CostGrid: SolidGrid { type Cost; // Required method fn cost( &self, coord: Coord, direction: Direction, ) -> Option<CostCell<Self::Cost>>; }