pub struct Tool {Show 13 fields
pub id: ToolId,
pub number: u32,
pub name: String,
pub description: String,
pub kind: ToolKind,
pub geometry: ToolGeometry,
pub turning_geometry: Option<TurningGeometry>,
pub holder: Option<Holder>,
pub coolant: Coolant,
pub feeds: FeedsSpeeds,
pub length_offset: Option<u32>,
pub diameter_offset: Option<u32>,
pub material: String,
}Expand description
A cutting tool as the user defines it. Geometry is a flat parameter set
(None where the kind does not use a field); crate::cutter::Cutter
turns it into a validated profile for the algorithms.
Fields§
§id: ToolId§number: u32Tool number in the machine’s carousel (T word).
name: String§description: String§kind: ToolKind§geometry: ToolGeometry§turning_geometry: Option<TurningGeometry>Explicit insert/blade geometry for turning; never inferred from a mill diameter.
holder: Option<Holder>§coolant: Coolant§feeds: FeedsSpeeds§length_offset: Option<u32>Length offset register (H word), when it differs from number.
diameter_offset: Option<u32>Diameter offset register (D word), when it differs from number.
material: StringMaterial this tool is made of, free text (carbide, HSS, …).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tool
impl<'de> Deserialize<'de> for Tool
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 Tool
Auto Trait Implementations§
impl Forget for Tool
impl Freeze for Tool
impl Move for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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