Closed QuantumEntangledAndy closed 3 years ago
So googling around to improve my rust foo it seems that what I am trying to so is not possible anyways :(
Apparently rust dosen't do traits of traits like this so I will close this as a learning lesson for my rust.. sorry about this
Perhaps my rust foo is not up to par but I am having issues with the method
I want to add a trait that implements the Chunkify trait rather than an
struct
that implements the trait so as to reduce repeated code.However the
Sizable
trait requires a method that returnsSelf
. But for a traitSelf
has an unknown sizeI cannot implement the
Sized
trait as once implemented we lose access to&self
required for thewidth
etcCould we seperate out the with_size method into its own trait AND for that trait implement the
Sized
trait for it like theDefault
trait does?