Trait UpdateHalfEdge

Source
pub trait UpdateHalfEdge {
    // Required methods
    fn update_curve<T>(
        &self,
        update: impl FnOnce(&Handle<Curve>, &mut Core) -> T,
        core: &mut Core,
    ) -> Self
       where T: Insert<Inserted = Handle<Curve>>;
    fn update_start_vertex<T>(
        &self,
        update: impl FnOnce(&Handle<Vertex>, &mut Core) -> T,
        core: &mut Core,
    ) -> Self
       where T: Insert<Inserted = Handle<Vertex>>;
}
Expand description

Update a HalfEdge

Required Methods§

Source

fn update_curve<T>( &self, update: impl FnOnce(&Handle<Curve>, &mut Core) -> T, core: &mut Core, ) -> Self
where T: Insert<Inserted = Handle<Curve>>,

Update the curve of the edge

Source

fn update_start_vertex<T>( &self, update: impl FnOnce(&Handle<Vertex>, &mut Core) -> T, core: &mut Core, ) -> Self
where T: Insert<Inserted = Handle<Vertex>>,

Update the start vertex of the 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.

Implementors§