Struct PackagePitch
pub struct PackagePitch { /* private fields */ }Expand description
A simple package pitch value in millimeters.
Implementations§
§impl PackagePitch
impl PackagePitch
pub fn from_millimeters(value: f64) -> Result<PackagePitch, PackagePitchError>
pub fn from_millimeters(value: f64) -> Result<PackagePitch, PackagePitchError>
Creates a positive pitch in millimeters.
§Errors
Returns [PackagePitchError] when the value is not finite or not positive.
pub const fn millimeters(self) -> f64
pub const fn millimeters(self) -> f64
Returns the pitch in millimeters.
Trait Implementations§
§impl Clone for PackagePitch
impl Clone for PackagePitch
§fn clone(&self) -> PackagePitch
fn clone(&self) -> PackagePitch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PackagePitch
impl Debug for PackagePitch
§impl Display for PackagePitch
impl Display for PackagePitch
§impl PartialEq for PackagePitch
impl PartialEq for PackagePitch
§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