External Publication
Visit Post

Should we have set static field for Trait?

Rust Internals [Unofficial] March 6, 2026
Source

Wouldn't functions work well for this usecase?

fn get_field(&self)->FieldType would also allow any implementors you want.

Or do you wish for inheritance?

Edit: I don't think the author wishes to discuss this further. He said nothing should be changed.

Discussion in the ATmosphere

Loading comments...