pub struct RasterWindow<'a> {
pub source_transform: [f64; 6],
pub source_tile: [usize; 2],
pub width: usize,
pub height: usize,
pub transform: [f64; 6],
pub owner: &'a [u32],
pub terrain: &'a [f32],
pub owner_cells: &'a [[usize; 2]],
}Expand description
Geometry and terrain belong to the caller and can be reused across timesteps.
Labels index owner_cells plus one; zero is outside the physical 2D footprint.
Fields§
§source_transform: [f64; 6]§source_tile: [usize; 2]§width: usize§height: usize§transform: [f64; 6]§owner: &'a [u32]§terrain: &'a [f32]§owner_cells: &'a [[usize; 2]]Auto Trait Implementations§
impl<'a> Freeze for RasterWindow<'a>
impl<'a> RefUnwindSafe for RasterWindow<'a>
impl<'a> Send for RasterWindow<'a>
impl<'a> Sync for RasterWindow<'a>
impl<'a> Unpin for RasterWindow<'a>
impl<'a> UnsafeUnpin for RasterWindow<'a>
impl<'a> UnwindSafe for RasterWindow<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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