I just realized that this 'Invalid' trait is also a prime example of why traits 
must be able to specify their items as private. Obviously that 'invalid' static 
method / constant should not be part of the public interface. Heck, the sole 
reason for the existence of the type could be that it protects itself from 
becoming invalid.

And I'd also argue that private should be the default for the items specified 
by traits so that there's no need for 'priv' keyword.

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to