Skip to main content

PathSource

Trait PathSource 

Source
pub trait PathSource {
    // Required method
    fn visit_paths(&self, f: &mut VertexVisitor<'_>);
}
Expand description

Anything that can be clipped as a set of open paths.

Required Methods§

Source

fn visit_paths(&self, f: &mut VertexVisitor<'_>)

Calls f(points, tags) for every path. tags, when present, has one tag per edge.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: PathSource + ?Sized> PathSource for &T

Source§

fn visit_paths(&self, f: &mut VertexVisitor<'_>)

Source§

impl<T: PathSource> PathSource for Vec<T>

Source§

fn visit_paths(&self, f: &mut VertexVisitor<'_>)

Source§

impl<T: PathSource> PathSource for [T]

Source§

fn visit_paths(&self, f: &mut VertexVisitor<'_>)

Implementors§