Skip to main content

Section

Struct Section 

Source
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: usize

Zero-based section number.

§operation: OperationId§name: String§strategy: String

Strategy name (the serde tag of the operation’s strategy).

§setup: SetupId§setup_name: String§wcs: WorkOffset§tool: ToolId§tool_number: u32§length_offset: u32

Length offset register (H).

§diameter_offset: u32

Diameter offset register (D).

§tool_change: bool

The tool differs from the previous section’s (always true for the first).

§spindle_rpm: f64

Spindle speed (the rpm limit when css is on).

§spindle_direction: SpindleDirection§css: bool

Constant surface speed (turning): surface_speed in program units per minute.

§surface_speed: Option<f64>§cutting_feed: f64

The 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: usize

Index of the section’s first motion in Program::motions (the comment).

§motion_count: usize

Number of motions in the section, including the inserted ones.

§cutting_length: f64§estimated_seconds: f64

Rough time estimate in seconds (lengths over feeds; no acceleration).

§post_properties: BTreeMap<String, String>§polish: Polish

Filtering and arc fitting applied to this section’s motions.

§report: OperationReport

Trait Implementations§

Source§

impl Clone for Section

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 Section

Source§

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

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

impl<'de> Deserialize<'de> for Section

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 Section

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 Serialize for Section

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 Section

Auto Trait Implementations§

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> 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.