pub struct GroupPlacement {
pub key: u64,
pub parent: Option<usize>,
pub rect: Option<GridRect>,
pub points: Option<PointRect>,
pub body_top: u32,
pub ignored: bool,
}Expand description
The result for one group.
Fields§
§key: u64The group’s key.
parent: Option<usize>The index, in the layout’s groups, of the group holding it.
rect: Option<GridRect>Its band, in twelfths: the grid’s whole width, from the top of its
first placed element (its header, if any) to the bottom of its
lowest one. None when nothing of it is placed.
points: Option<PointRect>Its band, in points.
body_top: u32The row, in twelfths, its members’ pins count from: just below its header.
ignored: boolSet when the group was ignored: it reaches past the elements, or it crosses another group’s boundary or header. Its elements are laid out as if it were not there.
Trait Implementations§
Source§impl Clone for GroupPlacement
impl Clone for GroupPlacement
Source§fn clone(&self) -> GroupPlacement
fn clone(&self) -> GroupPlacement
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 GroupPlacement
impl Debug for GroupPlacement
Source§impl<'de> Deserialize<'de> for GroupPlacement
impl<'de> Deserialize<'de> for GroupPlacement
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 GroupPlacement
impl PartialEq for GroupPlacement
Source§impl Serialize for GroupPlacement
impl Serialize for GroupPlacement
impl Copy for GroupPlacement
impl StructuralPartialEq for GroupPlacement
Auto Trait Implementations§
impl Freeze for GroupPlacement
impl RefUnwindSafe for GroupPlacement
impl Send for GroupPlacement
impl Sync for GroupPlacement
impl Unpin for GroupPlacement
impl UnsafeUnpin for GroupPlacement
impl UnwindSafe for GroupPlacement
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