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: BaselineShift
pub const SUPERSCRIPT: BaselineShift
Moves the text up by half the font size.
Sourcepub const SUBSCRIPT: BaselineShift
pub const SUBSCRIPT: BaselineShift
Moves the text down by half the font size.
Sourcepub const NONE: BaselineShift
pub const NONE: BaselineShift
No shift.
Sourcepub const UNSPECIFIED: BaselineShift
pub const UNSPECIFIED: BaselineShift
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
Source§fn clone(&self) -> BaselineShift
fn clone(&self) -> BaselineShift
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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