pub struct Subviews<'a> { /* private fields */ }Expand description
The children, as SwiftUI hands them over.
Borrowed for the duration of one callback: the pointer is SwiftUI’s and is not valid after the call returns, which is why this carries a lifetime and is never stored.
Implementations§
Source§impl Subviews<'_>
impl Subviews<'_>
Sourcepub fn size_that_fits(&self, i: usize, proposal: Proposal) -> (f64, f64)
pub fn size_that_fits(&self, i: usize, proposal: Proposal) -> (f64, f64)
The size child i would like, given a proposal.
Asking is the point of a two-pass layout: a child that is offered nothing reports its ideal size, and a layout that never asks can only place things blindly.
Auto Trait Implementations§
impl<'a> !Send for Subviews<'a>
impl<'a> !Sync for Subviews<'a>
impl<'a> Freeze for Subviews<'a>
impl<'a> RefUnwindSafe for Subviews<'a>
impl<'a> Unpin for Subviews<'a>
impl<'a> UnsafeUnpin for Subviews<'a>
impl<'a> UnwindSafe for Subviews<'a>
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