pub enum TextBaseline {
Top,
Hanging,
Middle,
Alphabetic,
Ideographic,
Bottom,
}
Expand description
Text baseline being used when drawing text
Variants§
Top
Text baseline is top of the em square
Hanging
Text baseline is the hanging baseline.
Middle
Text baseline is the middle of the em square.
Alphabetic
Text baseline is the normal alphabetic baseline. (default)
Ideographic
Text baseline is the ideographic baseline
Bottom
Text baseline is the bottom of the bounding box.
Trait Implementations§
Source§impl Default for TextBaseline
impl Default for TextBaseline
Source§fn default() -> TextBaseline
fn default() -> TextBaseline
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TextBaseline
impl RefUnwindSafe for TextBaseline
impl Send for TextBaseline
impl Sync for TextBaseline
impl Unpin for TextBaseline
impl UnwindSafe for TextBaseline
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> 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