pub struct Alignment(/* private fields */);
Implementations§
Source§impl Alignment
impl Alignment
pub const fn new(x: f32, y: f32) -> Self
pub const fn top_left() -> Self
pub const fn top_center() -> Self
pub const fn top_right() -> Self
pub const fn center_left() -> Self
pub const fn center() -> Self
pub const fn center_right() -> Self
pub const fn bottom_left() -> Self
pub const fn bottom_center() -> Self
pub const fn bottom_right() -> Self
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