Skip to main content

Pocket

Struct Pocket 

Source
#[non_exhaustive]
pub struct Pocket {
Show 18 fields pub width_axis: char, pub long_axis: char, pub width: f64, pub length: f64, pub depth: f64, pub w_center: Placed<f64>, pub lo: Placed<f64>, pub hi: Placed<f64>, pub d_lo: Placed<f64>, pub d_hi: Placed<f64>, pub open_sign: i32, pub edge_anchored: bool, pub rectangular_boundary: bool, pub floor_radius: Option<f64>, pub floor_fillets: Vec<FloorFillet>, pub body_key: Option<BodyKey>, pub end_radius: Option<f64>, pub corner_radius: Option<f64>,
}
Expand description

A bounded blind recess: a slot capped by a floor, so with a depth (d_hi - d_lo) and the side it opens to along the depth axis (open_sign). edge_anchored marks a corner notch, located by the two envelope edges it touches.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§width_axis: char§long_axis: char§width: f64§length: f64§depth: f64§w_center: Placed<f64>§lo: Placed<f64>§hi: Placed<f64>§d_lo: Placed<f64>§d_hi: Placed<f64>§open_sign: i32§edge_anchored: bool§rectangular_boundary: bool

A complete straight rectangular floor and four full-height inward planar walls prove a closed rectangular boundary. False leaves the boundary unclassified; absence of a proved end radius alone never establishes this property.

§floor_radius: Option<f64>

Uniform radius only when every floor boundary is filleted with this radius.

§floor_fillets: Vec<FloorFillet>

Individual floor transitions; omitted on legacy sharp-floor records.

§body_key: Option<BodyKey>§end_radius: Option<f64>§corner_radius: Option<f64>

Trait Implementations§

Source§

impl Clone for Pocket

Source§

fn clone(&self) -> Self

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 Pocket

Source§

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

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

impl<'de> Deserialize<'de> for Pocket

Source§

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 Pocket

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl Recess for Pocket

Source§

fn same_opening(&self, other: &Self) -> bool

Whether two readings share their directed opening (slots have no directed opening).
Source§

fn same_roles(&self, other: &Self) -> bool

Whether two equal-width readings assign the same physical width, run and opening.
Source§

fn width_axis(&self) -> usize

Source§

fn long_axis(&self) -> usize

Source§

fn width(&self) -> f64

Source§

fn w_center(&self) -> f64

Source§

fn lo(&self) -> f64

Source§

fn hi(&self) -> f64

Source§

fn d_lo(&self) -> f64

Source§

fn d_hi(&self) -> f64

Source§

fn spanned(&self, lo: f64, hi: f64, length: f64) -> Self

The record with new ends and length (replace(record, lo=, hi=, length=)).
Source§

fn set_end_radius(&mut self, radius: f64)

Source§

fn set_corner_radius(&mut self, radius: f64)

Source§

fn set_body_key(&mut self, key: Option<BodyKey>)

Source§

fn edge_anchored(&self) -> bool

Source§

fn depth_axis(&self) -> usize

Source§

fn region_center(&self) -> V3

The mid-point in part coordinates (_region_center).
Source§

impl Serialize for Pocket

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Pocket

Auto Trait Implementations§

§

impl Forget for Pocket

§

impl Freeze for Pocket

§

impl Move for Pocket

§

impl RefUnwindSafe for Pocket

§

impl Send for Pocket

§

impl Sync for Pocket

§

impl Unpin for Pocket

§

impl UnsafeUnpin for Pocket

§

impl UnwindSafe for Pocket

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> Same for T

Source§

type Output = T

Should always be Self
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 = !

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

fn try_from(value: U) -> Result<T, !>

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.