Enum three::Align
[−]
[src]
pub enum Align { Left, Center, Right, }
Describes horizontal alignment preference for positioning & bounds.
See gfx_glyph::HorizontalAlign
for more.
Variants
Left
Leftmost character is immediately to the right of the render position. Bounds start from the render position and advance rightwards.
Center
Leftmost & rightmost characters are equidistant to the render position. Bounds start from the render position and advance equally left & right.
Right
Rightmost character is immediately to the left of the render position. Bounds start from the render position and advance leftwards.
Trait Implementations
impl Debug for Align
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Align
[src]
fn clone(&self) -> Align
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Align
[src]
impl PartialEq for Align
[src]
fn eq(&self, __arg_0: &Align) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Align
[src]
impl Hash for Align
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl From<Align> for HorizontalAlign
[src]
fn from(align: Align) -> HorizontalAlign
[src]
Performs the conversion.