refactor(geometry): SetOffset should inherit from GetOffset

This commit is contained in:
Alain Emilia Anna Zscheile 2025-01-03 01:10:46 +01:00 committed by mikolaj
parent 699bd58949
commit a67f8ea052
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ pub trait GetOffset {
}
#[enum_dispatch]
pub trait SetOffset {
pub trait SetOffset: GetOffset {
fn set_offset(&mut self, offset: f64);
}
@ -68,7 +68,7 @@ pub enum GenericNode<P, C> {
pub trait AccessDotWeight<PW>: GetSetPos + GetWidth + Into<PW> + Copy {}
pub trait AccessSegWeight<PW>: GetWidth + Into<PW> + Copy {}
pub trait AccessBendWeight<PW>: GetOffset + SetOffset + GetWidth + Into<PW> + Copy {}
pub trait AccessBendWeight<PW>: SetOffset + GetWidth + Into<PW> + Copy {}
#[derive(Debug, Getters)]
pub struct Geometry<PW, DW, SW, BW, CW, PI, DI, SI, BI> {