pub enum CopperWeight {
Oz025,
Oz05,
Oz1,
Oz15,
Oz2,
Oz25,
Oz3,
Oz4,
Oz5,
}Expand description
Standard copper weight options (oz/ft²).
Variants§
Oz025
0.25 oz/ft²
Oz05
0.5 oz/ft²
Oz1
1 oz/ft²
Oz15
1.5 oz/ft²
Oz2
2 oz/ft²
Oz25
2.5 oz/ft²
Oz3
3 oz/ft²
Oz4
4 oz/ft²
Oz5
5 oz/ft²
Implementations§
Source§impl CopperWeight
impl CopperWeight
Sourcepub fn thickness_mils(self) -> f64
pub fn thickness_mils(self) -> f64
Copper thickness in mils.
Sourcepub fn thickness_mm(self) -> f64
pub fn thickness_mm(self) -> f64
Copper thickness in mm.
Sourcepub fn from_str_oz(s: &str) -> Result<Self, CalcError>
pub fn from_str_oz(s: &str) -> Result<Self, CalcError>
Parse from a string like “1oz”, “0.5oz”, “2.5oz”.
Trait Implementations§
Source§impl Clone for CopperWeight
impl Clone for CopperWeight
Source§fn clone(&self) -> CopperWeight
fn clone(&self) -> CopperWeight
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 moreSource§impl Debug for CopperWeight
impl Debug for CopperWeight
Source§impl<'de> Deserialize<'de> for CopperWeight
impl<'de> Deserialize<'de> for CopperWeight
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CopperWeight
impl PartialEq for CopperWeight
Source§impl Serialize for CopperWeight
impl Serialize for CopperWeight
impl Copy for CopperWeight
impl StructuralPartialEq for CopperWeight
Auto Trait Implementations§
impl Freeze for CopperWeight
impl RefUnwindSafe for CopperWeight
impl Send for CopperWeight
impl Sync for CopperWeight
impl Unpin for CopperWeight
impl UnsafeUnpin for CopperWeight
impl UnwindSafe for CopperWeight
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