diff --git a/src/layout/bend.rs b/src/layout/bend.rs index fc8c16c..9535b50 100644 --- a/src/layout/bend.rs +++ b/src/layout/bend.rs @@ -41,7 +41,7 @@ impl TryFrom for BendIndex { } } -#[enum_dispatch(GetOffset, SetOffset, GetWidth)] +#[enum_dispatch(GetOffset, SetOffset, GetWidth, GetLayer)] #[derive(Debug, Clone, Copy, PartialEq)] pub enum BendWeight { Fixed(FixedBendWeight), diff --git a/src/layout/dot.rs b/src/layout/dot.rs index 8af5d96..81d1a9c 100644 --- a/src/layout/dot.rs +++ b/src/layout/dot.rs @@ -43,7 +43,7 @@ impl TryFrom for DotIndex { } } -#[enum_dispatch(GetPos, SetPos, GetWidth)] +#[enum_dispatch(GetPos, SetPos, GetWidth, GetLayer)] #[derive(Debug, Clone, Copy, PartialEq)] pub enum DotWeight { Fixed(FixedDotWeight), diff --git a/src/layout/graph.rs b/src/layout/graph.rs index 9df736e..2b398bf 100644 --- a/src/layout/graph.rs +++ b/src/layout/graph.rs @@ -93,7 +93,7 @@ pub enum GeometryIndex { LooseBend(LooseBendIndex), } -#[enum_dispatch(GetWidth, Retag)] +#[enum_dispatch(GetWidth, GetLayer, Retag)] #[derive(Debug, Clone, Copy, PartialEq)] pub enum GeometryWeight { FixedDot(FixedDotWeight), diff --git a/src/layout/seg.rs b/src/layout/seg.rs index 436f5d0..b887937 100644 --- a/src/layout/seg.rs +++ b/src/layout/seg.rs @@ -44,7 +44,7 @@ impl TryFrom for SegIndex { } } -#[enum_dispatch(GetWidth)] +#[enum_dispatch(GetWidth, GetLayer)] #[derive(Debug, Clone, Copy, PartialEq)] pub enum SegWeight { Fixed(FixedSegWeight),