pub struct AddDatum;Expand description
Adds a datum to the part, named by the operation’s id: a point, an axis
or a plane built from the selected entities by one of the
Constructions. Like a sketch’s plane, it is built when the step runs
and stays where it was, whatever later steps do to what it was built
from.
Trait Implementations§
impl Copy for AddDatum
Source§impl<'de> Deserialize<'de> for AddDatum
impl<'de> Deserialize<'de> for AddDatum
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<S: Scalar> Operation<S> for AddDatum
impl<S: Scalar> Operation<S> for AddDatum
Source§fn handles(
&self,
before: &Part<S>,
args: &AddDatumArgs,
) -> GeopResult<Vec<Handle>>
fn handles( &self, before: &Part<S>, args: &AddDatumArgs, ) -> GeopResult<Vec<Handle>>
An offset plane’s distance, as a handle on the plane sliding along its normal; an offset point’s offsets, as a handle on the point per axis, sliding along it.
Source§type Args = AddDatumArgs
type Args = AddDatumArgs
Everything the operation needs, as plain, serializable design data.
Source§fn apply(
&self,
part: Part<S>,
operation_id: &str,
args: &AddDatumArgs,
) -> GeopResult<Part<S>>
fn apply( &self, part: Part<S>, operation_id: &str, args: &AddDatumArgs, ) -> GeopResult<Part<S>>
Applies the operation as the program step
operation_id, consuming
part and returning the part it produces. Everything the operation
creates is named after operation_id (see geop_core_part), so the
id has to be unique within a program. Read moreimpl StructuralPartialEq for AddDatum
Auto Trait Implementations§
impl Freeze for AddDatum
impl RefUnwindSafe for AddDatum
impl Send for AddDatum
impl Sync for AddDatum
impl Unpin for AddDatum
impl UnsafeUnpin for AddDatum
impl UnwindSafe for AddDatum
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more