Trait Collector

Source
pub trait Collector<T> {
    type Error: Error;

    // Required methods
    fn add_region(
        &mut self,
        center: CoordPair,
        data: &T,
    ) -> Result<(), Self::Error>;
    fn add_point(
        &mut self,
        region: usize,
        point: CoordPair,
    ) -> Result<(), Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn add_region(&mut self, center: CoordPair, data: &T) -> Result<(), Self::Error>

Source

fn add_point( &mut self, region: usize, point: CoordPair, ) -> Result<(), Self::Error>

Implementations on Foreign Types§

Source§

impl<'a, C, T> Collector<T> for &'a mut C
where C: Collector<T> + ?Sized,

Source§

type Error = <C as Collector<T>>::Error

Source§

fn add_region(&mut self, center: CoordPair, data: &T) -> Result<(), Self::Error>

Source§

fn add_point( &mut self, region: usize, point: CoordPair, ) -> Result<(), Self::Error>

Implementors§