pub struct LayoutSnapshot {
pub container: Container,
pub placed_items: SlotMap<PItemKey, PlacedItem>,
pub cde_snapshot: CDESnapshot,
}
Expand description
Fields§
§container: Container
§placed_items: SlotMap<PItemKey, PlacedItem>
§cde_snapshot: CDESnapshot
Snapshot of the collision detection engine
Implementations§
Source§impl LayoutSnapshot
impl LayoutSnapshot
Sourcepub fn density(&self, instance: &impl Instance) -> f32
pub fn density(&self, instance: &impl Instance) -> f32
Equivalent to Layout::density
Sourcepub fn placed_item_area(&self, instance: &impl Instance) -> f32
pub fn placed_item_area(&self, instance: &impl Instance) -> f32
Equivalent to Layout::placed_item_area
Trait Implementations§
Source§impl Clone for LayoutSnapshot
impl Clone for LayoutSnapshot
Source§fn clone(&self) -> LayoutSnapshot
fn clone(&self) -> LayoutSnapshot
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LayoutSnapshot
impl RefUnwindSafe for LayoutSnapshot
impl Send for LayoutSnapshot
impl Sync for LayoutSnapshot
impl Unpin for LayoutSnapshot
impl UnwindSafe for LayoutSnapshot
Blanket Implementations§
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
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