pub struct PipeSize {
pub name: &'static str,
pub threads_per_inch: f64,
pub outside: f64,
pub e0: f64,
pub l1: f64,
pub l2: f64,
}Expand description
One size of NPT.
Fields§
§name: &'static str1/2: the nominal pipe size, in inches.
threads_per_inch: f64§outside: f64The pipe’s outside diameter.
e0: f64The pitch diameter at the small end of the external thread.
l1: f64The hand-tight engagement.
l2: f64The effective thread length of the external thread.
Implementations§
Source§impl PipeSize
impl PipeSize
pub fn pitch(&self) -> f64
Sourcepub fn e1(&self) -> f64
pub fn e1(&self) -> f64
The pitch diameter at the large end of the internal thread, where a
hole is tapped from: E1 = E0 + L1 / 16.
Sourcepub fn diameters(&self, internal: bool) -> (f64, f64)
pub fn diameters(&self, internal: bool) -> (f64, f64)
The major and minor diameters where a thread starts: an internal
one at its large end, the face a hole is tapped from (E1); an
external one at its small end, the pipe’s end (E0).
Sourcepub fn crest(&self) -> f64
pub fn crest(&self) -> f64
How far the sharp V’s crest lies beyond the major diameter, in radius: half of what the truncation takes off.
Sourcepub fn designation(&self) -> String
pub fn designation(&self) -> String
How the thread is called: 1/2-14 NPT.
Trait Implementations§
impl Copy for PipeSize
impl StructuralPartialEq for PipeSize
Auto Trait Implementations§
impl Freeze for PipeSize
impl RefUnwindSafe for PipeSize
impl Send for PipeSize
impl Sync for PipeSize
impl Unpin for PipeSize
impl UnsafeUnpin for PipeSize
impl UnwindSafe for PipeSize
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