pub struct PackagePitch { /* private fields */ }Expand description
A simple package pitch value in millimeters.
Implementations§
Source§impl PackagePitch
impl PackagePitch
Sourcepub fn from_millimeters(value: f64) -> Result<Self, PackagePitchError>
pub fn from_millimeters(value: f64) -> Result<Self, PackagePitchError>
Creates a positive pitch in millimeters.
§Errors
Returns PackagePitchError when the value is not finite or not positive.
Sourcepub const fn millimeters(self) -> f64
pub const fn millimeters(self) -> f64
Returns the pitch in millimeters.
Trait Implementations§
Source§impl Clone for PackagePitch
impl Clone for PackagePitch
Source§fn clone(&self) -> PackagePitch
fn clone(&self) -> PackagePitch
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 PackagePitch
impl Debug for PackagePitch
Source§impl Display for PackagePitch
impl Display for PackagePitch
Source§impl PartialEq for PackagePitch
impl PartialEq for PackagePitch
Source§fn eq(&self, other: &PackagePitch) -> bool
fn eq(&self, other: &PackagePitch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PackagePitch
impl PartialOrd for PackagePitch
impl Copy for PackagePitch
impl StructuralPartialEq for PackagePitch
Auto Trait Implementations§
impl Freeze for PackagePitch
impl RefUnwindSafe for PackagePitch
impl Send for PackagePitch
impl Sync for PackagePitch
impl Unpin for PackagePitch
impl UnsafeUnpin for PackagePitch
impl UnwindSafe for PackagePitch
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