pub struct BaselineShift(pub f32);Expand description
Vertical shift of text from its baseline as a fraction of the font size. Positive values
move the text up. Compose’s BaselineShift.
Tuple Fields§
§0: f32Implementations§
Source§impl BaselineShift
impl BaselineShift
Sourcepub const SUPERSCRIPT: Self
pub const SUPERSCRIPT: Self
Moves the text up by half the font size.
Sourcepub const UNSPECIFIED: Self
pub const UNSPECIFIED: Self
No value is set and the shift is inherited. Holds NaN.
Sourcepub fn is_specified(self) -> bool
pub fn is_specified(self) -> bool
Returns false for BaselineShift::UNSPECIFIED.
Trait Implementations§
Source§impl Clone for BaselineShift
impl Clone for BaselineShift
impl Copy for BaselineShift
Source§impl Debug for BaselineShift
impl Debug for BaselineShift
Source§impl PartialEq for BaselineShift
impl PartialEq for BaselineShift
impl StructuralPartialEq for BaselineShift
Auto Trait Implementations§
impl Forget for BaselineShift
impl Freeze for BaselineShift
impl Move for BaselineShift
impl RefUnwindSafe for BaselineShift
impl Send for BaselineShift
impl Sync for BaselineShift
impl Unpin for BaselineShift
impl UnsafeUnpin for BaselineShift
impl UnwindSafe for BaselineShift
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