pub struct Toolpath {
pub operation: OperationId,
pub tool: ToolId,
pub motions: Vec<Motion>,
pub report: OperationReport,
}Expand description
The result of generating one operation.
Fields§
§operation: OperationId§tool: ToolId§motions: Vec<Motion>§report: OperationReportImplementations§
Source§impl Toolpath
impl Toolpath
pub fn new(operation: impl Into<OperationId>, tool: impl Into<ToolId>) -> Self
Sourcepub fn cutting_length(&self) -> f64
pub fn cutting_length(&self) -> f64
Total length of cutting motions (straight-line approximation for arcs).
Sourcepub fn first_non_finite(&self) -> Option<usize>
pub fn first_non_finite(&self) -> Option<usize>
Every motion coordinate finite; the first offender’s index otherwise.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Toolpath
impl<'de> Deserialize<'de> for Toolpath
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 Toolpath
Auto Trait Implementations§
impl Freeze for Toolpath
impl RefUnwindSafe for Toolpath
impl Send for Toolpath
impl Sync for Toolpath
impl Unpin for Toolpath
impl UnsafeUnpin for Toolpath
impl UnwindSafe for Toolpath
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