1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use crate::{Shape, ShapeNode}; /// A circular shape. #[derive(Debug, Clone, PartialEq, Eq)] pub struct Circle; impl Circle { pub fn new() -> Self { Self } } impl Shape for Circle { fn render(&self) -> ShapeNode { ShapeNode::Circle {} } }