pub struct Px(pub f32);Expand description
A device pixel. Renderer-facing surfaces, hit-testing, and framebuffer coordinates read and write this; a layout author reaches for Dp/Sp instead, and can only get here through an explicit Density.
Tuple Fields§
§0: f32Implementations§
Trait Implementations§
impl Copy for Px
Source§impl PartialOrd for Px
impl PartialOrd for Px
impl StructuralPartialEq for Px
Auto Trait Implementations§
impl Freeze for Px
impl RefUnwindSafe for Px
impl Send for Px
impl Sync for Px
impl Unpin for Px
impl UnsafeUnpin for Px
impl UnwindSafe for Px
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