Enum fontdue::layout::VerticalAlign
source · pub enum VerticalAlign {
Top,
Middle,
Bottom,
}
Expand description
Vertical alignment options for text when a max_height is provided.
Variants§
Top
Aligns text to the top of the region defined by the max_height.
Middle
Aligns text to the middle of the region defined by the max_height.
Bottom
Aligns text to the bottom of the region defined by the max_height.
Trait Implementations§
source§impl Clone for VerticalAlign
impl Clone for VerticalAlign
source§fn clone(&self) -> VerticalAlign
fn clone(&self) -> VerticalAlign
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for VerticalAlign
impl PartialEq for VerticalAlign
source§fn eq(&self, other: &VerticalAlign) -> bool
fn eq(&self, other: &VerticalAlign) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VerticalAlign
impl StructuralPartialEq for VerticalAlign
Auto Trait Implementations§
impl RefUnwindSafe for VerticalAlign
impl Send for VerticalAlign
impl Sync for VerticalAlign
impl Unpin for VerticalAlign
impl UnwindSafe for VerticalAlign
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