pub struct Flatten { /* private fields */ }Expand description
Flatten — one level, everything in it. The honest hierarchy of a small graph or a single-zoom overlay; also the migration floor, so a renderer can move onto the engine before it has a real LOD story.
Implementations§
Trait Implementations§
Source§impl Hierarchy for Flatten
impl Hierarchy for Flatten
Source§fn level_for(&self, _scale: f32) -> u32
fn level_for(&self, _scale: f32) -> u32
Which level this camera scale wants.
scale is world-units-per-pixel’s
reciprocal — the same number Facet::scale_range() clamps, so a map band
and a graph band are literally the same control.Source§fn members(&self, _level: u32) -> &[u32]
fn members(&self, _level: u32) -> &[u32]
Every feature present at
level, ascending. For a map this is “the tiles
/ features of this zoom band”; for a graph, “the visible nodes with the
currently-expanded clusters substituted in”.Source§fn expand(&self, _level: u32, _parent: u32) -> &[u32]
fn expand(&self, _level: u32, _parent: u32) -> &[u32]
The children that replace
parent when you descend from level to
level + 1. Empty = parent is a leaf and survives the descent.Source§fn parent_of(&self, _level: u32, _child: u32) -> Option<u32>
fn parent_of(&self, _level: u32, _child: u32) -> Option<u32>
The inverse of
expand: the coarse feature that stands in
for child at level - 1. Drives “zoom out and my selection follows”.fn kind(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for Flatten
impl RefUnwindSafe for Flatten
impl Send for Flatten
impl Sync for Flatten
impl Unpin for Flatten
impl UnsafeUnpin for Flatten
impl UnwindSafe for Flatten
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