//---------- OutlineDefn etc. ----------
#[ambassador::delegatable_trait]
-pub trait OutlineDefn: Debug + Sync + Send + 'static {
+pub trait OutlineDefnTrait: Debug + Sync + Send + 'static {
/// Success or failure must not depend on `svg_sz`
///
/// Called to *check* the group configuration before load, but
}
impl OutlineDefnEnum {
- fn defn(self) -> &'static dyn OutlineDefn {
+ fn defn(self) -> &'static dyn OutlineDefnTrait {
match self { $(
Self::$Shape => &[< $Shape Defn >] as _,
)* }
outline_defns! { Circle, Rect }
impl_via_ambassador!{
- impl OutlineDefn for OutlineDefnEnum { defn() }
+ impl OutlineDefnTrait for OutlineDefnEnum { defn() }
}
//---------- RectShape ----------
#[derive(Deserialize,Debug)]
struct RectDefn;
-impl OutlineDefn for RectDefn {
+impl OutlineDefnTrait for RectDefn {
fn load(&self, size: PosC<f64>) -> Outline {
RectShape { xy: size }.into()
}
#[derive(Deserialize,Debug)]
struct CircleDefn;
-impl OutlineDefn for CircleDefn {
+impl OutlineDefnTrait for CircleDefn {
fn load(&self, size: PosC<f64>) -> Outline {
let diam = size
.coords.into_iter()