You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having to expose the NodeTrait just to be able to use the methods on the Node type feels leaky. We should create a "sealed" and "unsealed" Node type, where one acts as a front for the other.
Having to expose the
NodeTrait
just to be able to use the methods on theNode
type feels leaky. We should create a "sealed" and "unsealed"Node
type, where one acts as a front for the other.We can do this by creating a facade using https://github.com/chancancode/rust-delegate, which should allow us to seal the
trait
requirements internally without leaking it.We should probably name one
SealedNode
and the otherNode. Using
Node` exclusively throughout our code as to prevent the sealed version from leaking.The text was updated successfully, but these errors were encountered: