pub struct Flat;Expand description
Flat — Z = 0. Use cases 1, 3 and 4. Zero cost: the engine special-cases
a z_range() of (0, 0) and skips the elevation pass entirely.
Trait Implementations§
impl Copy for Flat
Source§impl ElevationSource for Flat
impl ElevationSource for Flat
Source§fn elevation(&self, _id: u32, _p: WorldPos) -> f64
fn elevation(&self, _id: u32, _p: WorldPos) -> f64
Height of feature
id, given the world position the PositionSource
produced (a terrain source samples at p; a metric source ignores p).Source§fn elevations(&self, ids: &[u32], _pos: &[WorldPos], out: &mut Vec<f64>)
fn elevations(&self, ids: &[u32], _pos: &[WorldPos], out: &mut Vec<f64>)
Batch form; default loops.
fn kind(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for Flat
impl RefUnwindSafe for Flat
impl Send for Flat
impl Sync for Flat
impl Unpin for Flat
impl UnsafeUnpin for Flat
impl UnwindSafe for Flat
Blanket Implementations§
impl<T> Allocation for T
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