pub trait UpdateHalfEdgeGeometry {
// Required methods
fn set_path(self, path: SurfacePath, geometry: &mut Layer<Geometry>) -> Self;
fn update_path(
&self,
update: impl FnOnce(SurfacePath) -> SurfacePath,
core: &mut Core,
) -> Self;
fn update_boundary(
&self,
update: impl FnOnce(CurveBoundary<Point<1>>) -> CurveBoundary<Point<1>>,
core: &mut Core,
) -> Self;
}
Expand description
Update the geometry of a HalfEdge
Required Methods§
Sourcefn set_path(self, path: SurfacePath, geometry: &mut Layer<Geometry>) -> Self
fn set_path(self, path: SurfacePath, geometry: &mut Layer<Geometry>) -> Self
Set the path of the half-edge
Sourcefn update_path(
&self,
update: impl FnOnce(SurfacePath) -> SurfacePath,
core: &mut Core,
) -> Self
fn update_path( &self, update: impl FnOnce(SurfacePath) -> SurfacePath, core: &mut Core, ) -> Self
Update the path of the half-edge
Sourcefn update_boundary(
&self,
update: impl FnOnce(CurveBoundary<Point<1>>) -> CurveBoundary<Point<1>>,
core: &mut Core,
) -> Self
fn update_boundary( &self, update: impl FnOnce(CurveBoundary<Point<1>>) -> CurveBoundary<Point<1>>, core: &mut Core, ) -> Self
Update the boundary of the half-edge
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.