pub struct Alignment {
pub horizontal: HorizontalAlignment,
pub vertical: VerticalAlignment,
}Expand description
Alignment across both axes used for positioning content within a box.
Fields§
§horizontal: HorizontalAlignmentHorizontal alignment component.
vertical: VerticalAlignmentVertical alignment component.
Implementations§
Source§impl Alignment
impl Alignment
Sourcepub const BOTTOM_END: Self
pub const BOTTOM_END: Self
Align children to the bottom-end corner.
Sourcepub const fn new(
horizontal: HorizontalAlignment,
vertical: VerticalAlignment,
) -> Self
pub const fn new( horizontal: HorizontalAlignment, vertical: VerticalAlignment, ) -> Self
Creates a new Alignment from explicit horizontal and vertical components.
Trait Implementations§
impl Copy for Alignment
impl Eq for Alignment
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnwindSafe for Alignment
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