Expand description
Size in pixels that is aware of scaling
Fields
pixels: u32
scale_factor: u32
Implementations
sourceimpl PixelSize
impl PixelSize
pub fn as_scaled_floor(&self) -> u32
pub fn as_scaled_ceiling(&self) -> u32
Trait Implementations
impl Copy for PixelSize
impl StructuralPartialEq for PixelSize
Auto Trait Implementations
impl RefUnwindSafe for PixelSize
impl Send for PixelSize
impl Sync for PixelSize
impl Unpin for PixelSize
impl UnwindSafe for PixelSize
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more