pub struct Section {Show 29 fields
pub index: usize,
pub operation: OperationId,
pub name: String,
pub strategy: String,
pub setup: SetupId,
pub setup_name: String,
pub wcs: WorkOffset,
pub tool: ToolId,
pub tool_number: u32,
pub length_offset: u32,
pub diameter_offset: u32,
pub tool_change: bool,
pub spindle_rpm: f64,
pub spindle_direction: SpindleDirection,
pub css: bool,
pub surface_speed: Option<f64>,
pub cutting_feed: f64,
pub plunge_feed: f64,
pub coolant: Coolant,
pub heights: Heights,
pub tolerance: f64,
pub stock_to_leave: StockToLeave,
pub first_motion: usize,
pub motion_count: usize,
pub cutting_length: f64,
pub estimated_seconds: f64,
pub post_properties: BTreeMap<String, String>,
pub polish: Polish,
pub report: OperationReport,
}Expand description
Where one operation sits in the program stream and how it runs.
Fields§
§index: usizeZero-based section number.
operation: OperationId§name: String§strategy: StringStrategy name (the serde tag of the operation’s strategy).
setup: SetupId§setup_name: String§wcs: WorkOffset§tool: ToolId§tool_number: u32§length_offset: u32Length offset register (H).
diameter_offset: u32Diameter offset register (D).
tool_change: boolThe tool differs from the previous section’s (always true for the first).
spindle_rpm: f64Spindle speed (the rpm limit when css is on).
spindle_direction: SpindleDirection§css: boolConstant surface speed (turning): surface_speed in program units per minute.
surface_speed: Option<f64>§cutting_feed: f64The operation’s cutting and plunge feeds (its override or the tool’s).
plunge_feed: f64§coolant: Coolant§heights: Heights§tolerance: f64§stock_to_leave: StockToLeave§first_motion: usizeIndex of the section’s first motion in Program::motions (the comment).
motion_count: usizeNumber of motions in the section, including the inserted ones.
cutting_length: f64§estimated_seconds: f64Rough time estimate in seconds (lengths over feeds; no acceleration).
post_properties: BTreeMap<String, String>§polish: PolishFiltering and arc fitting applied to this section’s motions.
report: OperationReportTrait Implementations§
Source§impl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
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 Section
Auto Trait Implementations§
impl Forget for Section
impl Freeze for Sectionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<Diagnostic>: Freeze,
PhantomData<EmptyRegion>: Freeze,
PhantomData<ApproximationLimit>: Freeze,
impl Move for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Sectionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<Diagnostic>: UnsafeUnpin,
PhantomData<EmptyRegion>: UnsafeUnpin,
PhantomData<ApproximationLimit>: UnsafeUnpin,
impl UnwindSafe for Section
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