pub struct ParentData {
pub weight: f32,
pub fill: bool,
pub box_alignment: Option<Alignment>,
pub row_alignment: Option<VerticalAlignment>,
pub column_alignment: Option<HorizontalAlignment>,
}Expand description
Layout metadata supplied by a child for its direct parent.
Weight/fill apply to Row and Column. Alignment values override the corresponding parent layout’s default alignment for this child only.
Fields§
§weight: f32§fill: bool§box_alignment: Option<Alignment>§row_alignment: Option<VerticalAlignment>§column_alignment: Option<HorizontalAlignment>Implementations§
Source§impl ParentData
impl ParentData
pub fn has_weight(&self) -> bool
Trait Implementations§
Source§impl Clone for ParentData
impl Clone for ParentData
Source§fn clone(&self) -> ParentData
fn clone(&self) -> ParentData
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 ParentData
Source§impl Debug for ParentData
impl Debug for ParentData
Source§impl Default for ParentData
impl Default for ParentData
Source§fn default() -> ParentData
fn default() -> ParentData
Returns the “default value” for a type. Read more
Source§impl From<FlexParentData> for ParentData
impl From<FlexParentData> for ParentData
Source§fn from(value: FlexParentData) -> Self
fn from(value: FlexParentData) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParentData
impl PartialEq for ParentData
impl StructuralPartialEq for ParentData
Auto Trait Implementations§
impl Freeze for ParentData
impl RefUnwindSafe for ParentData
impl Send for ParentData
impl Sync for ParentData
impl Unpin for ParentData
impl UnsafeUnpin for ParentData
impl UnwindSafe for ParentData
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