pub struct AddPartArgs {
pub file: String,
pub mates: BTreeMap<String, Mate>,
pub parameters: Settings,
pub mirror: Option<FrameAxis>,
}Fields§
§file: StringThe program file whose part is placed, relative to this program’s own file; empty until one is chosen.
mates: BTreeMap<String, Mate>The mates this step adds, by an id of their own: m1, m2, …
Each is named add_part(step,id) in the part.
parameters: SettingsThe values the part’s own parameters (see
geop_ops_model::parameters::Parameters) are given here instead of its
own, by name: a number, a table’s row, the colour — the part as this
program places it.
mirror: Option<FrameAxis>The part mirrored, in the plane of its own origin normal to this
axis — x for its yz plane — or not: a mirrored component, the
other hand of the part, placed as a part derived from it (its
program, then crate::MirrorPart).
Implementations§
Trait Implementations§
Source§impl Clone for AddPartArgs
impl Clone for AddPartArgs
Source§fn clone(&self) -> AddPartArgs
fn clone(&self) -> AddPartArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddPartArgs
impl Debug for AddPartArgs
Source§impl Default for AddPartArgs
impl Default for AddPartArgs
Source§fn default() -> AddPartArgs
fn default() -> AddPartArgs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AddPartArgs
impl<'de> Deserialize<'de> for AddPartArgs
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
Source§impl PartialEq for AddPartArgs
impl PartialEq for AddPartArgs
Source§impl Serialize for AddPartArgs
impl Serialize for AddPartArgs
Source§impl StepArgs for AddPartArgs
impl StepArgs for AddPartArgs
Source§const KIND: &'static str = <AddPart as ::geop_core_editor::part_operation::PartOperation>::KIND
const KIND: &'static str = <AddPart as ::geop_core_editor::part_operation::PartOperation>::KIND
The kind of the operation they are for (see
Operation::KIND).impl StructuralPartialEq for AddPartArgs
Auto Trait Implementations§
impl Freeze for AddPartArgs
impl RefUnwindSafe for AddPartArgs
impl Send for AddPartArgs
impl Sync for AddPartArgs
impl Unpin for AddPartArgs
impl UnsafeUnpin for AddPartArgs
impl UnwindSafe for AddPartArgs
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