pub struct Placement {
pub key: u64,
pub logical: usize,
pub visual: Option<usize>,
pub form: usize,
pub orientation: Orientation,
pub rect: Option<GridRect>,
pub points: Option<PointRect>,
pub status: Status,
pub group: Option<usize>,
pub band_top: u32,
}Expand description
The result for one element.
Fields§
§key: u64The element’s key.
logical: usizeIts index in the input: the logical order (Tab, accessibility, device banks).
visual: Option<usize>Its rank in reading order (top to bottom, then left to right), or
None when not placed.
form: usizeThe chosen form’s index. For an overflow, the last form tried.
orientation: OrientationThe chosen orientation.
rect: Option<GridRect>The slot, in twelfths, when placed.
points: Option<PointRect>The slot, in points, when placed.
status: StatusPlaced or overflow, with a reason.
group: Option<usize>The index, in the layout’s groups, of the innermost group holding it (its header included).
band_top: u32The row, in twelfths, its pin counts from: the top of its band (its group’s members, below the header, or its run of loose elements). Subtract it from a position to store it as a pin.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Placement
impl<'de> Deserialize<'de> for Placement
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
impl Copy for Placement
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Freeze for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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