pub struct SubviewPlacement {
pub frame: Rect,
pub proposal: ProposalSize,
}Expand description
A child’s frame and the size proposal selected to produce its layout.
Fields§
§frame: RectThe child frame in the parent layout’s coordinate space.
proposal: ProposalSizeThe proposal used to measure and recursively place the child; it is not inferred from the frame.
Implementations§
Source§impl SubviewPlacement
impl SubviewPlacement
Sourcepub const fn new(frame: Rect, proposal: ProposalSize) -> SubviewPlacement
pub const fn new(frame: Rect, proposal: ProposalSize) -> SubviewPlacement
Pairs a placed frame with its selected measurement proposal.
Trait Implementations§
Source§impl Clone for SubviewPlacement
impl Clone for SubviewPlacement
Source§fn clone(&self) -> SubviewPlacement
fn clone(&self) -> SubviewPlacement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SubviewPlacement
Source§impl Debug for SubviewPlacement
impl Debug for SubviewPlacement
Source§impl PartialEq for SubviewPlacement
impl PartialEq for SubviewPlacement
impl StructuralPartialEq for SubviewPlacement
Auto Trait Implementations§
impl Freeze for SubviewPlacement
impl RefUnwindSafe for SubviewPlacement
impl Send for SubviewPlacement
impl Sync for SubviewPlacement
impl Unpin for SubviewPlacement
impl UnsafeUnpin for SubviewPlacement
impl UnwindSafe for SubviewPlacement
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