Trait sirpent::state::grids::VectorTrait [] [src]

pub trait VectorTrait: PartialEq + Eq + Copy + Serialize + Deserialize + Clone + Debug {
    type Direction: DirectionTrait;
    fn distance(&self, other: &Self) -> usize;
    fn neighbour(&self, direction: &Self::Direction) -> Self;
    fn neighbours(&self) -> Vec<Self>;
}

Associated Types

Required Methods

Implementors