#[non_exhaustive]pub struct RegionPlacement {
pub key: u64,
pub anchor: Anchor,
pub side: Side,
pub area: Option<PointRect>,
pub block: Option<PointRect>,
pub layout: Layout,
}Expand description
Where a region went.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: u64The region’s key.
anchor: AnchorIts anchor.
side: SideIts side.
area: Option<PointRect>The room it had: its place less the gap, the depth, and the blocks
of the regions before it. None when none was left.
block: Option<PointRect>The extent of its placed cards, None when none is placed.
layout: LayoutThe slot engine’s last layout of its cards, in the engine’s frame (transposed for a region flowing down), kept for hysteresis.
Trait Implementations§
Source§impl Clone for RegionPlacement
impl Clone for RegionPlacement
Source§fn clone(&self) -> RegionPlacement
fn clone(&self) -> RegionPlacement
Returns a duplicate 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 moreSource§impl Debug for RegionPlacement
impl Debug for RegionPlacement
Source§impl<'de> Deserialize<'de> for RegionPlacement
impl<'de> Deserialize<'de> for RegionPlacement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RegionPlacement
impl PartialEq for RegionPlacement
Source§impl Serialize for RegionPlacement
impl Serialize for RegionPlacement
impl StructuralPartialEq for RegionPlacement
Auto Trait Implementations§
impl Freeze for RegionPlacement
impl RefUnwindSafe for RegionPlacement
impl Send for RegionPlacement
impl Sync for RegionPlacement
impl Unpin for RegionPlacement
impl UnsafeUnpin for RegionPlacement
impl UnwindSafe for RegionPlacement
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