pub enum TextVerticalAlign {
Top,
Center,
Bottom,
Baseline,
}Expand description
Vertical placement of the text block inside the box it is drawn in.
Variants§
Top
The text block starts at the top of the box.
Center
The text block is centered vertically in the box.
Bottom
The text block ends at the bottom of the box.
Baseline
The box’s top edge is the first line’s baseline. Use this when a
layout is specified in baselines rather than boxes; the text then
extends above the edge by
TextMeasurement::first_baseline.
Trait Implementations§
Source§impl Clone for TextVerticalAlign
impl Clone for TextVerticalAlign
Source§fn clone(&self) -> TextVerticalAlign
fn clone(&self) -> TextVerticalAlign
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextVerticalAlign
Source§impl Debug for TextVerticalAlign
impl Debug for TextVerticalAlign
Source§impl Default for TextVerticalAlign
impl Default for TextVerticalAlign
Source§fn default() -> TextVerticalAlign
fn default() -> TextVerticalAlign
Returns the “default value” for a type. Read more
impl Eq for TextVerticalAlign
Source§impl Hash for TextVerticalAlign
impl Hash for TextVerticalAlign
Source§impl PartialEq for TextVerticalAlign
impl PartialEq for TextVerticalAlign
impl StructuralPartialEq for TextVerticalAlign
Auto Trait Implementations§
impl Forget for TextVerticalAlign
impl Freeze for TextVerticalAlign
impl Move for TextVerticalAlign
impl RefUnwindSafe for TextVerticalAlign
impl Send for TextVerticalAlign
impl Sync for TextVerticalAlign
impl Unpin for TextVerticalAlign
impl UnsafeUnpin for TextVerticalAlign
impl UnwindSafe for TextVerticalAlign
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more