pub struct Alignment {
pub x: LayoutAlignmentX,
pub y: LayoutAlignmentY,
}
Expand description
Controls child alignment within a layout.
Fields§
§x: LayoutAlignmentX
§y: LayoutAlignmentY
Implementations§
Source§impl Alignment
impl Alignment
Sourcepub fn new(x: LayoutAlignmentX, y: LayoutAlignmentY) -> Self
pub fn new(x: LayoutAlignmentX, y: LayoutAlignmentY) -> Self
Creates a new alignment setting for a layout.
Trait Implementations§
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