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§
Sourcefn add_half_edges<T>(
&self,
half_edges: impl IntoIterator<Item = T>,
core: &mut Core,
) -> Self
fn add_half_edges<T>( &self, half_edges: impl IntoIterator<Item = T>, core: &mut Core, ) -> Self
Add edges to the cycle
Sourcefn update_half_edge<T, R>(
&self,
handle: &Handle<HalfEdge>,
update: impl FnOnce(&Handle<HalfEdge>, &mut Core) -> R,
core: &mut Core,
) -> Self
fn update_half_edge<T, R>( &self, handle: &Handle<HalfEdge>, update: impl FnOnce(&Handle<HalfEdge>, &mut Core) -> R, core: &mut Core, ) -> Self
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.