pub enum Dock {
None,
Fill,
Left,
Right,
Top,
Bottom,
}Expand description
WinForms-style dock — which edge(s) the widget attaches to inside its parent.
None— normal flex positioning (default)Fill— stretch to fill all remaining space (both axes)Left— full height, natural width, hugs left edge; other children flow rightRight— full height, natural width, hugs right edgeTop— full width, natural height, hugs top edge; other children flow downBottom— full width, natural height, hugs bottom edge
Variants§
Trait Implementations§
impl Copy for Dock
impl StructuralPartialEq for Dock
Auto Trait Implementations§
impl Freeze for Dock
impl RefUnwindSafe for Dock
impl Send for Dock
impl Sync for Dock
impl Unpin for Dock
impl UnsafeUnpin for Dock
impl UnwindSafe for Dock
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