A batch of important notes and ideas for next dev interation extracted from our chat with Pauan:
Mutable doesn't have to be wrapped in Rc since internally it's Arc. However MutableVec has to be wrapped. (And I agree with him it would be nice if Rust had two different Clone traits - one for reference cloning and one for deep value cloning.)
There is a chance const generics will be a better choice than unit types for defining rules in element builders.
Unlocking by a let binding and self-invoking closures demonstrated in one of the examples shouldn't work for non-Copy types.
We shouldn't rely too much on disabled default features because they could be enabled by other dependencies and there are some other potential problems.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
A batch of important notes and ideas for next dev interation extracted from our chat with Pauan:
Mutable
doesn't have to be wrapped inRc
since internally it'sArc
. HoweverMutableVec
has to be wrapped. (And I agree with him it would be nice if Rust had two differentClone
traits - one for reference cloning and one for deep value cloning.)let
binding and self-invoking closures demonstrated in one of the examples shouldn't work for non-Copy types.