pub struct MirrorPart;Expand description
Mirrors every body of the part in place, in a plane of its own origin:
the other hand of it, every entity keeping its name — so a step or a
mate naming one still finds it. Its datums stay as they are: a frame
mirrored is no frame. The part says it is mirrored where it is listed
(the parameter mirrored, the plane’s name): a bill of materials tells
it from the part as it was.
Trait Implementations§
Source§impl Clone for MirrorPart
impl Clone for MirrorPart
Source§fn clone(&self) -> MirrorPart
fn clone(&self) -> MirrorPart
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 moreimpl Copy for MirrorPart
Source§impl Debug for MirrorPart
impl Debug for MirrorPart
Source§impl Default for MirrorPart
impl Default for MirrorPart
Source§fn default() -> MirrorPart
fn default() -> MirrorPart
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MirrorPart
impl<'de> Deserialize<'de> for MirrorPart
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 Editable for MirrorPart
impl Editable for MirrorPart
const INFO: OperationInfo = <MirrorPart as ::geop_core_editor::part_operation::PartOperation>::INFO
Source§type EditingState = FormState<<MirrorPart as PartOperation>::Session>
type EditingState = FormState<<MirrorPart as PartOperation>::Session>
What the editor keeps about a step while it is edited, beyond its
arguments, starting from the default whenever a step is opened.
Source§fn new_args(context: &Context<'_>) -> Self::Args
fn new_args(context: &Context<'_>) -> Self::Args
The arguments of a new step: sensible defaults, taking the part it
is inserted into into account.
Source§fn presentation(
context: &Context<'_>,
args: &Self::Args,
editing: &Self::EditingState,
) -> Form
fn presentation( context: &Context<'_>, args: &Self::Args, editing: &Self::EditingState, ) -> Form
What the editor shows while the step is edited. Never fails: an
editor needs the form most exactly when the arguments do not build,
so whatever is wrong is said in it.
Source§fn process_user_event(
context: &Context<'_>,
args: &Self::Args,
editing: &Self::EditingState,
event: Event,
) -> (Self::Args, Self::EditingState)
fn process_user_event( context: &Context<'_>, args: &Self::Args, editing: &Self::EditingState, event: Event, ) -> (Self::Args, Self::EditingState)
The step’s arguments and editing state after
event.Source§impl ModelOperation for MirrorPart
impl ModelOperation for MirrorPart
Source§fn build(
model: &mut NamedModel,
_: &Reader<'_>,
step: &str,
args: &MirrorPartArgs,
) -> GeopResult<()>
fn build( model: &mut NamedModel, _: &Reader<'_>, step: &str, args: &MirrorPartArgs, ) -> GeopResult<()>
Builds the step
step — what everything it makes is named after —
into model, reading whatever else it builds on through reader,
so the step is rebuilt when that changes.Source§impl Operation for MirrorPart
impl Operation for MirrorPart
Source§const KIND: &'static str = <MirrorPart as ::geop_core_editor::part_operation::PartOperation>::KIND
const KIND: &'static str = <MirrorPart as ::geop_core_editor::part_operation::PartOperation>::KIND
The name programs store its steps under.
Source§type Args = <MirrorPart as PartOperation>::Args
type Args = <MirrorPart as PartOperation>::Args
What a step of the operation is given. It is saved with the program,
so it names targets and elements, never holds their internal ids.
Source§fn run(ctx: &mut StepContext<'_>, args: &Self::Args) -> __GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &Self::Args) -> __GeopResult<()>
Declares what the step produces, through
ctx (see
StepContext::produce): cheap, since it runs in every run. What
takes work is done in the makes, which run only when what they read
changed.Source§impl PartOperation for MirrorPart
impl PartOperation for MirrorPart
Source§fn new_args(_: &Context<'_>) -> MirrorPartArgs
fn new_args(_: &Context<'_>) -> MirrorPartArgs
In the origin’s yz plane.
Source§fn run(ctx: &mut StepContext<'_>, args: &MirrorPartArgs) -> GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &MirrorPartArgs) -> GeopResult<()>
The bodies mirrored, then the part said to be mirrored.
Source§fn form<'a>(
_: &'a Context<'a>,
args: &MirrorPartArgs,
_: &FormState<()>,
) -> EditForm<'a, MirrorPartArgs>
fn form<'a>( _: &'a Context<'a>, args: &MirrorPartArgs, _: &FormState<()>, ) -> EditForm<'a, MirrorPartArgs>
The plane, of three.
const INFO: OperationInfo
Source§type Args = MirrorPartArgs
type Args = MirrorPartArgs
What a step is given. It is saved with the program, so it names
targets and elements, never holds their internal ids.
Source§type Session = ()
type Session = ()
What the editor keeps while a step is edited besides its arguments
and the visuals selected:
() for most.Source§fn begin_event(session: &mut Self::Session)
fn begin_event(session: &mut Self::Session)
What the session forgets at the start of every event, before the
event is handled: nothing, by default.
Source§impl PartialEq for MirrorPart
impl PartialEq for MirrorPart
Source§impl Serialize for MirrorPart
impl Serialize for MirrorPart
impl StructuralPartialEq for MirrorPart
Auto Trait Implementations§
impl Freeze for MirrorPart
impl RefUnwindSafe for MirrorPart
impl Send for MirrorPart
impl Sync for MirrorPart
impl Unpin for MirrorPart
impl UnsafeUnpin for MirrorPart
impl UnwindSafe for MirrorPart
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