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