Skip to main content

Meshable

Trait Meshable 

Source
pub trait Meshable {
    type Props;

    // Required method
    fn mesh(&self, props: Self::Props) -> Mesh;
}
Expand description

Trait for objects able to return a mesh.

Required Associated Types§

Source

type Props

Props that can come in handy when generating the mesh.

Required Methods§

Source

fn mesh(&self, props: Self::Props) -> Mesh

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Meshable for Cubic

Source§

type Props = BezierMeshProps

Source§

fn mesh(&self, props: Self::Props) -> Mesh

Source§

impl Meshable for Linear

Source§

type Props = BezierMeshProps

Source§

fn mesh(&self, props: Self::Props) -> Mesh

Source§

impl Meshable for Quadratic

Source§

type Props = BezierMeshProps

Source§

fn mesh(&self, props: Self::Props) -> Mesh

Implementors§