Trait UpdateCycle

Source
pub trait UpdateCycle {
    // Required methods
    fn add_half_edges<T>(
        &self,
        half_edges: impl IntoIterator<Item = T>,
        core: &mut Core,
    ) -> Self
       where T: Insert<Inserted = Handle<HalfEdge>>;
    fn update_half_edge<T, R>(
        &self,
        handle: &Handle<HalfEdge>,
        update: impl FnOnce(&Handle<HalfEdge>, &mut Core) -> R,
        core: &mut Core,
    ) -> Self
       where T: Insert<Inserted = Handle<HalfEdge>>,
             R: IntoIterator<Item = T>;
}
Expand description

Update a Cycle

Required Methods§

Source

fn add_half_edges<T>( &self, half_edges: impl IntoIterator<Item = T>, core: &mut Core, ) -> Self
where T: Insert<Inserted = Handle<HalfEdge>>,

Add edges to the cycle

Source

fn update_half_edge<T, R>( &self, handle: &Handle<HalfEdge>, update: impl FnOnce(&Handle<HalfEdge>, &mut Core) -> R, core: &mut Core, ) -> Self
where T: Insert<Inserted = Handle<HalfEdge>>, R: IntoIterator<Item = T>,

Update an edge of the cycle

§Panics

Panics, if the object can’t be found.

Panics, if the update results in multiple handles referencing the same object.

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§