ToRing

Trait ToRing 

Source
pub trait ToRing: Primitive2d + Inset
where Self: Sized,
{ // Required method fn to_ring(self, thickness: f32) -> Ring<Self>; }
Expand description

Provides a convenience method for converting a primitive to a Ring, with a given thickness.

The primitive must implement Inset.

Required Methods§

Source

fn to_ring(self, thickness: f32) -> Ring<Self>

Construct a Ring

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§

Source§

impl<P> ToRing for P
where P: Primitive2d + Clone + Inset,