pub struct DisplayScale(/* private fields */);Expand description
A display scale expressed in thousandths.
Implementations§
Source§impl DisplayScale
impl DisplayScale
pub fn from_milli(value: u32) -> DisplayScale
pub fn one() -> DisplayScale
pub fn milli(self) -> u32
Trait Implementations§
Source§impl Clone for DisplayScale
impl Clone for DisplayScale
Source§fn clone(&self) -> DisplayScale
fn clone(&self) -> DisplayScale
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 moreSource§impl Debug for DisplayScale
impl Debug for DisplayScale
Source§impl Hash for DisplayScale
impl Hash for DisplayScale
Source§impl Ord for DisplayScale
impl Ord for DisplayScale
Source§fn cmp(&self, other: &DisplayScale) -> Ordering
fn cmp(&self, other: &DisplayScale) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DisplayScale
impl PartialEq for DisplayScale
Source§fn eq(&self, other: &DisplayScale) -> bool
fn eq(&self, other: &DisplayScale) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DisplayScale
impl PartialOrd for DisplayScale
impl Copy for DisplayScale
impl Eq for DisplayScale
impl StructuralPartialEq for DisplayScale
Auto Trait Implementations§
impl Freeze for DisplayScale
impl RefUnwindSafe for DisplayScale
impl Send for DisplayScale
impl Sync for DisplayScale
impl Unpin for DisplayScale
impl UnsafeUnpin for DisplayScale
impl UnwindSafe for DisplayScale
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