Skip to main content

RasterBuilder

Trait RasterBuilder 

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§