pub struct Program {
pub name: String,
pub number: Option<u32>,
pub comment: String,
pub units: Units,
pub machine: Option<Machine>,
pub setups: Vec<Setup>,
pub tools: Vec<Tool>,
pub sections: Vec<Section>,
pub motions: Vec<ProgramMotion>,
pub summary: ProgramSummary,
}Expand description
The assembled program: one motion stream plus its sections.
Fields§
§name: String§number: Option<u32>§comment: String§units: Units§machine: Option<Machine>§setups: Vec<Setup>Setups in program order.
tools: Vec<Tool>Tools in order of first use, each once.
sections: Vec<Section>§motions: Vec<ProgramMotion>§summary: ProgramSummaryImplementations§
Source§impl Program
impl Program
Sourcepub fn section_motions(&self, section: &Section) -> &[ProgramMotion]
pub fn section_motions(&self, section: &Section) -> &[ProgramMotion]
The motions of one section.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Program
impl<'de> Deserialize<'de> for Program
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 Program
Auto Trait Implementations§
impl Forget for Program
impl Freeze for Programwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<LinkSolid>: Freeze,
PhantomData<Setup>: Freeze,
PhantomData<Tool>: Freeze,
PhantomData<Section>: Freeze,
PhantomData<ProgramMotion>: Freeze,
impl Move for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnsafeUnpin for Programwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<LinkSolid>: UnsafeUnpin,
PhantomData<Setup>: UnsafeUnpin,
PhantomData<Tool>: UnsafeUnpin,
PhantomData<Section>: UnsafeUnpin,
PhantomData<ProgramMotion>: UnsafeUnpin,
impl UnwindSafe for Program
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