pub struct CustomLayout { /* private fields */ }Expand description
A layout algorithm, ready to be given children.
The value SwiftUI stores is an index into a Rust-side table, not the
closures themselves: SwiftUI copies a Layout value around freely, and a
Box<dyn Fn> is not something it can copy. An index is one word and
trivially copyable, which is what its value witness needs it to be.
Auto Trait Implementations§
impl Freeze for CustomLayout
impl RefUnwindSafe for CustomLayout
impl Send for CustomLayout
impl Sync for CustomLayout
impl Unpin for CustomLayout
impl UnsafeUnpin for CustomLayout
impl UnwindSafe for CustomLayout
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