pub struct Logical<T>(pub T);Expand description
A value in logical pixels.
Tuple Fields§
§0: TImplementations§
Source§impl Logical<Size>
impl Logical<Size>
Sourcepub fn to_physical_pixels(self, factor: ScaleFactor) -> Physical<Size<u32>>
pub fn to_physical_pixels(self, factor: ScaleFactor) -> Physical<Size<u32>>
The size in whole physical pixels, rounded the way winit rounds a window’s size.
Trait Implementations§
impl<T: Copy> Copy for Logical<T>
impl<T: Eq> Eq for Logical<T>
impl<T: PartialEq> StructuralPartialEq for Logical<T>
Auto Trait Implementations§
impl<T> Forget for Logical<T>
impl<T> Freeze for Logical<T>where
T: Freeze,
impl<T> Move for Logical<T>
impl<T> RefUnwindSafe for Logical<T>where
T: RefUnwindSafe,
impl<T> Send for Logical<T>where
T: Send,
impl<T> Sync for Logical<T>where
T: Sync,
impl<T> Unpin for Logical<T>where
T: Unpin,
impl<T> UnsafeUnpin for Logical<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Logical<T>where
T: UnwindSafe,
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