pub struct Identity { /* private fields */ }Expand description
Identity — the position IS the coordinate. Use case 3 (the flat 2D overlay) and any caller that already laid its own content out.
Implementations§
Trait Implementations§
Source§impl PositionSource for Identity
impl PositionSource for Identity
Source§fn feature_count(&self) -> usize
fn feature_count(&self) -> usize
How many features this source addresses. Ids are
0..feature_count().Source§fn kind(&self) -> &'static str
fn kind(&self) -> &'static str
Short tag for
state_json / diagnostics ("mercator", "layout", …).Source§fn bounds(&self, id: u32) -> WorldAabb
fn bounds(&self, id: u32) -> WorldAabb
The world-space extent of feature
id. Point features keep the default.
A road, a building footprint or a cluster hull overrides it — that box is
what the culler and the Hierarchy index.Source§fn positions(&self, ids: &[u32], out: &mut Vec<WorldPos>)
fn positions(&self, ids: &[u32], out: &mut Vec<WorldPos>)
Batch projection — the hot path. Overriding it is how a columnar
source (Arrow, a GPU-resident buffer) avoids a virtual call per feature.
Source§fn generation(&self) -> u64
fn generation(&self) -> u64
A generation counter. Bump it whenever positions move, so caches
(cull index, pick index, screen grids) know to rebuild. A static source
returns a constant; a live force layout returns its iteration number. Read more
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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