pub enum WireSize {
Awg {
gauge: i32,
insulation: f64,
},
Diameter(f64),
}Expand description
How thick a wire is.
Variants§
Awg
By its American wire gauge — 0 to 40, the conductor’s — and the
wall of insulation round it.
Diameter(f64)
By its outer diameter, insulation included.
Implementations§
Trait Implementations§
impl Copy for WireSize
Source§impl<'de> Deserialize<'de> for WireSize
impl<'de> Deserialize<'de> for WireSize
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
impl StructuralPartialEq for WireSize
Auto Trait Implementations§
impl Freeze for WireSize
impl RefUnwindSafe for WireSize
impl Send for WireSize
impl Sync for WireSize
impl Unpin for WireSize
impl UnsafeUnpin for WireSize
impl UnwindSafe for WireSize
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