Struct boostvoronoi::sync_diagram::SyncDiagram [−][src]
pub struct SyncDiagram<I, F> where
I: InputType + Neg<Output = I>,
F: OutputType + Neg<Output = F>, { /* fields omitted */ }
Expand description
Sync version of the boostvoronoi::diagram::VoronoiDiagram struct. This is useful when traversing the diagram in a multi threaded environment.
Implementations
impl<I, F> SyncDiagram<I, F> where
I: InputType + Neg<Output = I>,
F: OutputType + Neg<Output = F>,
impl<I, F> SyncDiagram<I, F> where
I: InputType + Neg<Output = I>,
F: OutputType + Neg<Output = F>,
pub fn edge_rot_next_iterator(
&self,
edge_id: EdgeIndex
) -> EdgeRotNextIterator<'_, I, F>ⓘNotable traits for EdgeRotNextIterator<'s, I, F>
impl<'s, I, F> Iterator for EdgeRotNextIterator<'s, I, F> where
I: InputType + Neg<Output = I>,
F: OutputType + Neg<Output = F>, type Item = EdgeIndex;
pub fn edge_rot_next_iterator(
&self,
edge_id: EdgeIndex
) -> EdgeRotNextIterator<'_, I, F>ⓘNotable traits for EdgeRotNextIterator<'s, I, F>
impl<'s, I, F> Iterator for EdgeRotNextIterator<'s, I, F> where
I: InputType + Neg<Output = I>,
F: OutputType + Neg<Output = F>, type Item = EdgeIndex;
Returns an edge iterator, the edges will all originate at the same vertex as ‘edge_id’. ‘edge_id’ will be the first edge returned by the iterator.
Returns a pointer to the rotation next edge over the starting point of the half-edge.
Returns a pointer to the rotation previous edge over the starting point of the half-edge.
Returns the next edge or an error
Returns the previous edge or an BvError if it does not exist
Returns the twin edge or a BvError if it does not exists
Returns true if the edge is finite (segment, parabolic arc). Returns false if the edge is infinite (ray, line).
Returns true if the edge is infinite (ray, line). Returns false if the edge is finite (segment, parabolic arc).
Returns the optional vertex0 of the edge
Returns the optional vertex1 of the edge
Returns a reference to a vertex
pub fn vertex_get_mut(
&mut self,
vertex_id: VertexIndex
) -> Result<&mut Vertex<I, F>, BvError>
pub fn vertex_get_mut(
&mut self,
vertex_id: VertexIndex
) -> Result<&mut Vertex<I, F>, BvError>
Returns a mutable reference to a vertex
Trait Implementations
impl<I: Debug, F: Debug> Debug for SyncDiagram<I, F> where
I: InputType + Neg<Output = I>,
F: OutputType + Neg<Output = F>,
impl<I: Debug, F: Debug> Debug for SyncDiagram<I, F> where
I: InputType + Neg<Output = I>,
F: OutputType + Neg<Output = F>,
impl<I: Default, F: Default> Default for SyncDiagram<I, F> where
I: InputType + Neg<Output = I>,
F: OutputType + Neg<Output = F>,
impl<I: Default, F: Default> Default for SyncDiagram<I, F> where
I: InputType + Neg<Output = I>,
F: OutputType + Neg<Output = F>,
Returns the “default value” for a type. Read more
impl<I, F> From<Diagram<I, F>> for SyncDiagram<I, F> where
I: InputType + Neg<Output = I>,
F: OutputType + Neg<Output = F>,
impl<I, F> From<Diagram<I, F>> for SyncDiagram<I, F> where
I: InputType + Neg<Output = I>,
F: OutputType + Neg<Output = F>,
Performs the conversion.
Auto Trait Implementations
impl<I, F> RefUnwindSafe for SyncDiagram<I, F> where
F: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, F> Send for SyncDiagram<I, F> where
F: Send,
I: Send,
impl<I, F> Sync for SyncDiagram<I, F> where
F: Sync,
I: Sync,
impl<I, F> Unpin for SyncDiagram<I, F>
impl<I, F> UnwindSafe for SyncDiagram<I, F> where
F: UnwindSafe,
I: UnwindSafe,