pub enum TextBaseline {
Alphabetic,
Ideographic,
}Expand description
A horizontal line used for aligning text.
Variants§
Alphabetic
The horizontal line used to align the bottom of glyphs for alphabetic characters.
This baseline is often used for alphabetical scripts like Latin, Greek, Cyrillic, etc.
Characters with descenders (like ‘p’, ‘g’, or ‘y’) extend below this line.
Ideographic
The horizontal line used to align ideographic characters.
This baseline is often used for scripts with uniform square heights, like Chinese, Japanese, Korean, etc.
Trait Implementations§
Source§impl Clone for TextBaseline
impl Clone for TextBaseline
impl Copy for TextBaseline
Source§impl Debug for TextBaseline
impl Debug for TextBaseline
impl Eq for TextBaseline
Source§impl Hash for TextBaseline
impl Hash for TextBaseline
Source§impl PartialEq for TextBaseline
impl PartialEq for TextBaseline
impl StructuralPartialEq for TextBaseline
Auto Trait Implementations§
impl Freeze for TextBaseline
impl RefUnwindSafe for TextBaseline
impl Send for TextBaseline
impl Sync for TextBaseline
impl Unpin for TextBaseline
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.