pub trait RasterBuilder<B: Backend> {
    // Required methods
    fn add_with_transform(
        &mut self,
        path: &B::Path,
        transform: &Transform2D<f32>
    ) -> &mut Self;
    fn build(self) -> B::Raster;

    // Provided method
    fn add(
        &mut self,
        path: &B::Path,
        transform: Option<&Transform2D<f32>>
    ) -> &mut Self { ... }
}
Expand description

Builds one Raster.

Required Methods§

source

fn add_with_transform( &mut self, path: &B::Path, transform: &Transform2D<f32> ) -> &mut Self

Add a path to the raster with transform.

source

fn build(self) -> B::Raster

Builds the raster.

Consumes the builder; another one can be requested from the Context.

Provided Methods§

source

fn add( &mut self, path: &B::Path, transform: Option<&Transform2D<f32>> ) -> &mut Self

Add a path to the raster with optional transform.

Object Safety§

This trait is not object safe.

Implementors§