#[non_exhaustive]pub enum Stock {
BoundsOffset {
x: f64,
y: f64,
top: f64,
bottom: f64,
},
Box {
min: Point3,
max: Point3,
},
Cylinder {
base: Point3,
axis: Point3,
radius: f64,
height: f64,
},
FromSolid {
solid: String,
},
FromRest {
setup: SetupId,
},
}Expand description
Raw material definition. Geometric stock is given in MODEL coordinates and
transformed with the setup; FromRest chains setups.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BoundsOffset
The targets’ bounding box grown by per-side offsets (Fusion’s “relative size box”).
Box
An explicit box.
Cylinder
A cylinder along axis starting at base.
FromSolid
Another body in the document is the stock.
FromRest
The rest material left by a previous setup.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stock
impl<'de> Deserialize<'de> for Stock
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 Stock
Auto Trait Implementations§
impl Forget for Stock
impl Freeze for Stock
impl Move for Stock
impl RefUnwindSafe for Stock
impl Send for Stock
impl Sync for Stock
impl Unpin for Stock
impl UnsafeUnpin for Stock
impl UnwindSafe for Stock
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