pub struct Bands { /* private fields */ }Expand description
Bands — THE shared hierarchy. A map zoom pyramid and a graph
cluster-expansion tree are both a list of Bands; nothing in the engine
distinguishes them.
Implementations§
Trait Implementations§
Source§impl Hierarchy for Bands
impl Hierarchy for Bands
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 Bands
impl RefUnwindSafe for Bands
impl Send for Bands
impl Sync for Bands
impl Unpin for Bands
impl UnsafeUnpin for Bands
impl UnwindSafe for Bands
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