Skip to main content

HoleSite

Struct HoleSite 

Source
pub struct HoleSite {
    pub axis: Axis,
    pub size: Option<String>,
    pub fit: HoleFit,
    pub seat: f64,
    pub depth: f64,
    pub through: bool,
}
Expand description

One hole, as the step that drilled it recorded it — kept as geometry, so that it says the same whatever later steps do to its faces.

Fields§

§axis: Axis

Where it enters its face, and the way it runs into the material from there (a unit vector).

§size: Option<String>

The ISO metric size of the screw it is for: M6. None for a hole sized by hand, or tapped for a pipe thread.

§fit: HoleFit§seat: f64

How far below its face a screw’s head seats: a counterbore’s depth; none for any other.

§depth: f64

How far it runs from its face: a blind hole’s depth, or, through the material, as far as its wall goes.

§through: bool

It comes out of the material at its far end.

Implementations§

Source§

impl HoleSite

Source

pub fn seat_frame(&self) -> GeopResult<CoordinateSystem>

The frame a screw’s head seats on: on the axis, as far below the face as a head seats, its w pointing out of the hole — the way a standard screw’s datum seat faces, its shank running down -w into the hole.

Source

pub fn exit_frame(&self) -> GeopResult<Option<CoordinateSystem>>

The frame where it comes out of the material, its w pointing out of the hole there — where a nut on a screw through it seats. None for a blind hole.

Source

pub fn grip(&self) -> f64

How long the hole is below where a head seats: the grip of a screw through it, or how far a screw can go into it.

Source

pub fn moved(&self, motion: &Motion) -> Self

The same hole, moved by motion.

Trait Implementations§

Source§

impl Clone for HoleSite

Source§

fn clone(&self) -> HoleSite

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HoleSite

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for HoleSite

Source§

fn eq(&self, other: &HoleSite) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for HoleSite

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.