Trait Layer

Source
pub trait Layer {
    type Data;
    type Error;

    // Required methods
    fn get(
        &self,
        map: &mut Map,
        point: CoordPair,
    ) -> Result<Self::Data, Self::Error>;
    fn set(
        &self,
        map: &mut Map,
        point: CoordPair,
        value: Self::Data,
    ) -> Result<(), Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn get( &self, map: &mut Map, point: CoordPair, ) -> Result<Self::Data, Self::Error>

Source

fn set( &self, map: &mut Map, point: CoordPair, value: Self::Data, ) -> Result<(), Self::Error>

Implementors§