pub enum Dock {
Left,
Right,
Top,
Bottom,
Fill,
}Expand description
Side of a container a child is docked to.
Variants§
Left
Dock to the left edge.
Right
Dock to the right edge.
Top
Dock to the top edge.
Bottom
Dock to the bottom edge.
Fill
Fill the remaining space.
Implementations§
Source§impl Dock
impl Dock
Sourcepub const fn is_horizontal(self) -> bool
pub const fn is_horizontal(self) -> bool
Returns true for Dock::Left and Dock::Right.
Sourcepub const fn is_vertical(self) -> bool
pub const fn is_vertical(self) -> bool
Returns true for Dock::Top and Dock::Bottom.
Sourcepub const fn is_side(self) -> bool
pub const fn is_side(self) -> bool
Returns true for every side except Dock::Fill.
Trait Implementations§
impl Copy for Dock
impl Eq 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