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: Alignment
pub const BOTTOM_END: Alignment
Align children to the bottom-end corner.
Sourcepub const fn new(
horizontal: HorizontalAlignment,
vertical: VerticalAlignment,
) -> Alignment
pub const fn new( horizontal: HorizontalAlignment, vertical: VerticalAlignment, ) -> Alignment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.