pub struct DeleteBody;Expand description
Deletes the bodies bodies refers to, and everything of them: a solid
by its name, a sheet — faces standing on their own, which have no name
as a whole — by one of its faces. A face of a solid deletes the whole
solid.
Creates nothing, so names nothing; the names of everything deleted are free again.
Trait Implementations§
Source§impl Clone for DeleteBody
impl Clone for DeleteBody
Source§fn clone(&self) -> DeleteBody
fn clone(&self) -> DeleteBody
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 DeleteBody
Source§impl Debug for DeleteBody
impl Debug for DeleteBody
Source§impl Default for DeleteBody
impl Default for DeleteBody
Source§fn default() -> DeleteBody
fn default() -> DeleteBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeleteBody
impl<'de> Deserialize<'de> for DeleteBody
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 DeleteBody
impl Editable for DeleteBody
const INFO: OperationInfo = <DeleteBody as ::geop_core_editor::part_operation::PartOperation>::INFO
Source§type EditingState = FormState<<DeleteBody as PartOperation>::Session>
type EditingState = FormState<<DeleteBody 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 DeleteBody
impl ModelOperation for DeleteBody
Source§fn build(
model: &mut NamedModel,
reader: &Reader<'_>,
_: &str,
args: &DeleteBodyArgs,
) -> GeopResult<()>
fn build( model: &mut NamedModel, reader: &Reader<'_>, _: &str, args: &DeleteBodyArgs, ) -> GeopResult<()>
The bodies are resolved in the model as the steps before left it,
which model is a copy of.
Source§impl Operation for DeleteBody
impl Operation for DeleteBody
Source§const KIND: &'static str = <DeleteBody as ::geop_core_editor::part_operation::PartOperation>::KIND
const KIND: &'static str = <DeleteBody as ::geop_core_editor::part_operation::PartOperation>::KIND
The name programs store its steps under.
Source§type Args = <DeleteBody as PartOperation>::Args
type Args = <DeleteBody 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 DeleteBody
impl PartOperation for DeleteBody
Source§fn new_args(_: &Context<'_>) -> DeleteBodyArgs
fn new_args(_: &Context<'_>) -> DeleteBodyArgs
Nothing picked yet: what to delete is never a guess.
Source§fn form<'a>(
context: &'a Context<'a>,
args: &DeleteBodyArgs,
_: &FormState<()>,
) -> EditForm<'a, DeleteBodyArgs>
fn form<'a>( context: &'a Context<'a>, args: &DeleteBodyArgs, _: &FormState<()>, ) -> EditForm<'a, DeleteBodyArgs>
The bodies, picked.
const INFO: OperationInfo
Source§type Args = DeleteBodyArgs
type Args = DeleteBodyArgs
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 run(ctx: &mut StepContext<'_>, args: &DeleteBodyArgs) -> GeopResult<()>
fn run(ctx: &mut StepContext<'_>, args: &DeleteBodyArgs) -> GeopResult<()>
Declares what the step produces, through
ctx (see
StepContext::produce).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 DeleteBody
impl PartialEq for DeleteBody
Source§impl Serialize for DeleteBody
impl Serialize for DeleteBody
impl StructuralPartialEq for DeleteBody
Auto Trait Implementations§
impl Freeze for DeleteBody
impl RefUnwindSafe for DeleteBody
impl Send for DeleteBody
impl Sync for DeleteBody
impl Unpin for DeleteBody
impl UnsafeUnpin for DeleteBody
impl UnwindSafe for DeleteBody
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