pub enum CutStep2D {
Cut {
axis: CutAxis,
position: u32,
},
Rotate,
FenceReset {
new_position: u32,
},
ToolUp,
ToolDown,
Travel {
to_x: u32,
to_y: u32,
},
}Expand description
A single step in a 2D cut plan.
Variants§
Cut
Make a cut along axis at position. For a vertical cut,
position is the x-coordinate; for horizontal, the y-coordinate.
Rotate
Rotate the workpiece 90° (table / panel saw only).
FenceReset
Reset the fence to a new position (table / panel saw only).
ToolUp
Lift the tool off the workpiece (CNC router only).
ToolDown
Lower the tool onto the workpiece (CNC router only).
Travel
Travel to a new coordinate with the tool up (CNC router only). The start of the travel is the previous step’s endpoint.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CutStep2D
impl<'de> Deserialize<'de> for CutStep2D
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 Eq for CutStep2D
impl StructuralPartialEq for CutStep2D
Auto Trait Implementations§
impl Freeze for CutStep2D
impl RefUnwindSafe for CutStep2D
impl Send for CutStep2D
impl Sync for CutStep2D
impl Unpin for CutStep2D
impl UnsafeUnpin for CutStep2D
impl UnwindSafe for CutStep2D
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more