pub struct RasterizeContext<'a, N> {
pub raster_info: RasterInfo,
pub field: FieldSource<'a, N>,
pub by: Option<&'a [String]>,
pub pixel_fn: PixelFunction,
pub background: N,
pub all_touched: bool,
}Expand description
Spatial + value context handed to the rasterization engine.
Fields§
§raster_info: RasterInfoThe spatial information of the final raster.
field: FieldSource<'a, N>The values to burn.
by: Option<&'a [String]>Specify the grouping of the geometries into multiple bands in the final raster. None is no grouping.
For this to work, by has to have the same length of the geometries.
pixel_fn: PixelFunctionDescribes what happens to overlapping pixels.
background: N§all_touched: boolFlags whether all pixels touching the geometry should be burned.
Trait Implementations§
Source§impl<'a, N: Clone> Clone for RasterizeContext<'a, N>
impl<'a, N: Clone> Clone for RasterizeContext<'a, N>
Source§fn clone(&self) -> RasterizeContext<'a, N>
fn clone(&self) -> RasterizeContext<'a, N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a, N> !Freeze for RasterizeContext<'a, N>
impl<'a, N> !RefUnwindSafe for RasterizeContext<'a, N>
impl<'a, N> !UnwindSafe for RasterizeContext<'a, N>
impl<'a, N> Send for RasterizeContext<'a, N>
impl<'a, N> Sync for RasterizeContext<'a, N>where
N: Sync,
impl<'a, N> Unpin for RasterizeContext<'a, N>where
N: Unpin,
impl<'a, N> UnsafeUnpin for RasterizeContext<'a, N>where
N: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more