pub struct Align {
pub h: HAlign,
pub v: VAlign,
}Expand description
Specifies the alignment along both horizontal and vertical directions.
Fields§
§h: HAlignHorizontal alignment policy
v: VAlignVertical alignment policy
Implementations§
Source§impl Align
impl Align
Sourcepub const fn new(h: HAlign, v: VAlign) -> Self
pub const fn new(h: HAlign, v: VAlign) -> Self
Creates a new Align object from the given alignments.
Sourcepub const fn top_center() -> Self
pub const fn top_center() -> Self
Creates a top-center alignment.
Sourcepub const fn bot_center() -> Self
pub const fn bot_center() -> Self
Creates a bottom-center alignment.
Sourcepub const fn center_left() -> Self
pub const fn center_left() -> Self
Creates a center-right alignment.
Sourcepub const fn center_right() -> Self
pub const fn center_right() -> Self
Creates a center-right alignment.
Trait Implementations§
Source§impl Resolvable for Align
impl Resolvable for Align
impl Copy for Align
impl Eq for Align
impl StructuralPartialEq for Align
Auto Trait Implementations§
impl Freeze for Align
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnwindSafe for Align
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.