pub struct BuiltinWorkpiece {
pub kind: BuiltinWorkbenchKind,
pub output_type: OutputType,
pub creator: Hashed<Creator>,
pub f: &'static BuiltinWorkpieceFn,
}Expand description
The built-in workpiece.
Fields§
§kind: BuiltinWorkbenchKindKind of the workpiece.
output_type: OutputTypeOutput type.
creator: Hashed<Creator>Creator symbol.
f: &'static BuiltinWorkpieceFnThe function that will be called when the workpiece is rendered.
Implementations§
Source§impl BuiltinWorkpiece
impl BuiltinWorkpiece
Sourcepub fn call(&self) -> RenderResult<BuiltinWorkpieceOutput>
pub fn call(&self) -> RenderResult<BuiltinWorkpieceOutput>
Call the workpiece with its arguments.
Trait Implementations§
Source§impl Clone for BuiltinWorkpiece
impl Clone for BuiltinWorkpiece
Source§fn clone(&self) -> BuiltinWorkpiece
fn clone(&self) -> BuiltinWorkpiece
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComputedHash for BuiltinWorkpiece
impl ComputedHash for BuiltinWorkpiece
Source§fn computed_hash(&self) -> HashId
fn computed_hash(&self) -> HashId
Return computed hash value.
Source§impl Debug for BuiltinWorkpiece
impl Debug for BuiltinWorkpiece
Source§impl Display for BuiltinWorkpiece
impl Display for BuiltinWorkpiece
Source§impl From<BooleanOp> for BuiltinWorkpiece
impl From<BooleanOp> for BuiltinWorkpiece
Source§impl RenderWithContext<Rc<WithBounds2D<Geometry2D>>> for BuiltinWorkpiece
impl RenderWithContext<Rc<WithBounds2D<Geometry2D>>> for BuiltinWorkpiece
Source§fn render_with_context(
&self,
context: &mut RenderContext,
) -> RenderResult<Geometry2DOutput>
fn render_with_context( &self, context: &mut RenderContext, ) -> RenderResult<Geometry2DOutput>
Render method.
Source§impl RenderWithContext<Rc<WithBounds3D<Geometry3D>>> for BuiltinWorkpiece
impl RenderWithContext<Rc<WithBounds3D<Geometry3D>>> for BuiltinWorkpiece
Source§fn render_with_context(
&self,
context: &mut RenderContext,
) -> RenderResult<Geometry3DOutput>
fn render_with_context( &self, context: &mut RenderContext, ) -> RenderResult<Geometry3DOutput>
Render method.
Auto Trait Implementations§
impl !Freeze for BuiltinWorkpiece
impl !RefUnwindSafe for BuiltinWorkpiece
impl !Send for BuiltinWorkpiece
impl !Sync for BuiltinWorkpiece
impl Unpin for BuiltinWorkpiece
impl !UnwindSafe for BuiltinWorkpiece
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,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more