From dfb93390ed6800bc2488638dd2122a2d8c3f05f1 Mon Sep 17 00:00:00 2001 From: Jonathan Cornaz Date: Wed, 23 Aug 2023 20:23:53 +0200 Subject: [PATCH] v3: seal the `Cast` trait --- src/v3/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/v3/mod.rs b/src/v3/mod.rs index b13f46b..615065d 100644 --- a/src/v3/mod.rs +++ b/src/v3/mod.rs @@ -50,10 +50,12 @@ where } } +#[sealed] pub trait Cast { fn cast(&self, vector: Vec2, target: &Rhs) -> Option; } +#[sealed] impl Cast for A where A: Shape,