pub struct Sp(pub f32);Expand description
Scale-independent pixels: a text size that follows both the device’s pixel density and the user’s font-scale accessibility setting. Distinct from Dp because a length must not move when the user’s text-size setting does, and a text size must.
Tuple Fields§
§0: f32Implementations§
Trait Implementations§
impl Copy for Sp
Source§impl PartialOrd for Sp
impl PartialOrd for Sp
impl StructuralPartialEq for Sp
Auto Trait Implementations§
impl Freeze for Sp
impl RefUnwindSafe for Sp
impl Send for Sp
impl Sync for Sp
impl Unpin for Sp
impl UnsafeUnpin for Sp
impl UnwindSafe for Sp
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