Enum emath::align::Align [−][src]
left/center/right or top/center/bottom alignment for e.g. anchors and layouts.
Variants
Left or top.
Horizontal or vertical center.
Right or bottom.
Implementations
impl Align
[src]
pub const LEFT: Self
[src]
Convenience for Self::Min
pub const RIGHT: Self
[src]
Convenience for Self::Max
pub const TOP: Self
[src]
Convenience for Self::Min
pub const BOTTOM: Self
[src]
Convenience for Self::Max
pub fn left() -> Self
[src]
👎 Deprecated:
Use Self::LEFT
pub fn right() -> Self
[src]
👎 Deprecated:
Use Self::RIGHT
pub fn top() -> Self
[src]
👎 Deprecated:
Use Self::TOP
pub fn bottom() -> Self
[src]
👎 Deprecated:
Use Self::BOTTOM
pub fn to_factor(&self) -> f32
[src]
Convert Min => 0.0
, Center => 0.5
or Max => 1.0
.
Trait Implementations
impl Clone for Align
[src]
impl Copy for Align
[src]
impl Debug for Align
[src]
impl Default for Align
[src]
impl PartialEq<Align> for Align
[src]
impl StructuralPartialEq for Align
[src]
Auto Trait Implementations
impl RefUnwindSafe for Align
[src]
impl Send for Align
[src]
impl Sync for Align
[src]
impl Unpin for Align
[src]
impl UnwindSafe for Align
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,