pub struct LogicalPixels(/* private fields */);Expand description
Positive finite scalar measured in logical screen pixels.
Construction is explicit so physical pixels, world lengths, and DPI ratios
cannot enter logical-width APIs through an unlabelled f32.
Implementations§
Trait Implementations§
Source§impl Clone for LogicalPixels
impl Clone for LogicalPixels
Source§fn clone(&self) -> LogicalPixels
fn clone(&self) -> LogicalPixels
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 LogicalPixels
Source§impl Debug for LogicalPixels
impl Debug for LogicalPixels
Source§impl PartialEq for LogicalPixels
impl PartialEq for LogicalPixels
Source§impl PartialOrd for LogicalPixels
impl PartialOrd for LogicalPixels
impl StructuralPartialEq for LogicalPixels
Auto Trait Implementations§
impl Freeze for LogicalPixels
impl RefUnwindSafe for LogicalPixels
impl Send for LogicalPixels
impl Sync for LogicalPixels
impl Unpin for LogicalPixels
impl UnsafeUnpin for LogicalPixels
impl UnwindSafe for LogicalPixels
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