pub struct Proposal {
pub width: Option<f64>,
pub height: Option<f64>,
}Expand description
What the parent is offering, each dimension possibly unspecified.
None means “as much or as little as you like” — SwiftUI’s nil, which is
not the same as zero and is why this is an Option rather than a float.
Fields§
§width: Option<f64>§height: Option<f64>Implementations§
Trait Implementations§
impl Copy for Proposal
impl StructuralPartialEq for Proposal
Auto Trait Implementations§
impl Freeze for Proposal
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnsafeUnpin for Proposal
impl UnwindSafe for Proposal
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