UpdateCycle

Trait UpdateCycle 

Source
pub trait UpdateCycle {
    // Required methods
    fn add_half_edges(
        &self,
        half_edges: impl IntoIterator<Item = Handle<HalfEdge>>,
    ) -> Cycle;
    fn replace_half_edge(
        &self,
        original: &Handle<HalfEdge>,
        replacement: Handle<HalfEdge>,
    ) -> Cycle;
    fn update_nth_half_edge(
        &self,
        index: usize,
        f: impl FnMut(&Handle<HalfEdge>) -> Handle<HalfEdge>,
    ) -> Cycle;
}
Expand description

Update a Cycle

Required Methods§

Source

fn add_half_edges( &self, half_edges: impl IntoIterator<Item = Handle<HalfEdge>>, ) -> Cycle

Add half-edges to the cycle

Source

fn replace_half_edge( &self, original: &Handle<HalfEdge>, replacement: Handle<HalfEdge>, ) -> Cycle

Replace the provided half-edge

§Panics

Panics, unless this operation replaces exactly one half-edge.

Source

fn update_nth_half_edge( &self, index: usize, f: impl FnMut(&Handle<HalfEdge>) -> Handle<HalfEdge>, ) -> Cycle

Update the half-edge at the given index

§Panics

Panics, unless this operation updates exactly one 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.

Implementors§