pub struct Layout { /* private fields */ }Expand description
Layout — positions produced by a layout algorithm that keeps running
(force-directed, hierarchical, metro). Arithmetically identical to
Identity; the difference is generation,
which every engine-side cache keys on.
Implementations§
Trait Implementations§
Source§impl PositionSource for Layout
impl PositionSource for Layout
Source§fn feature_count(&self) -> usize
fn feature_count(&self) -> usize
How many features this source addresses. Ids are
0..feature_count().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
Source§fn kind(&self) -> &'static str
fn kind(&self) -> &'static str
Short tag for
state_json / diagnostics ("mercator", "layout", …).Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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