api-guidelines
api-guidelines copied to clipboard
Rust API guidelines
This was discussed (a long time ago now) in https://github.com/rust-lang/api-guidelines/discussions/95. I tried to make this a simple summary of that discussion and not editorialize too much. I did add a...
Excuse me if this has already been mentioned and/or discussed somewhere and I just missed it. But I honestly searched and didn't find anything resembling, although for me this was...
Today, I wanted to switch to using `Vec::with_capacity` instead of `Vec::new` while iterating over a [`toml_edit::Table`](https://docs.rs/toml_edit/latest/toml_edit/struct.Table.html): ```rs let v = Vec::with_capacity(table.len()); ``` But to my surprise, the [`Table::len`](https://docs.rs/toml_edit/latest/toml_edit/struct.Table.html#method.len) method actually...
https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility