pub struct HalfPoint(pub u32);Expand description
Half-points — 1/2 of a point, or 1/144 of an inch. Used for font sizes (e.g., 24 half-points = 12pt).
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
impl Copy for HalfPoint
impl Eq for HalfPoint
Source§impl Ord for HalfPoint
impl Ord for HalfPoint
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 PartialOrd for HalfPoint
impl PartialOrd for HalfPoint
impl StructuralPartialEq for HalfPoint
Auto Trait Implementations§
impl Freeze for HalfPoint
impl RefUnwindSafe for HalfPoint
impl Send for HalfPoint
impl Sync for HalfPoint
impl Unpin for HalfPoint
impl UnsafeUnpin for HalfPoint
impl UnwindSafe for HalfPoint
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