diff options
| author | Alice Ryhl <aliceryhl@google.com> | 2025-11-25 13:59:39 +0000 |
|---|---|---|
| committer | Yury Norov (NVIDIA) <yury.norov@gmail.com> | 2025-11-26 11:25:35 -0500 |
| commit | 6297fb3863d81b0970fd435476b837739c0ea4e7 (patch) | |
| tree | 9f3da702df6d8951706d92cb57b820559b9546ac /tools/lib/python | |
| parent | d0cf6512bbcf77afb6102f886fcd7fd48b7ae043 (diff) | |
rust: id_pool: rename IdPool::new() to with_capacity()
We want to change ::new() to take no parameters and produce a pool that
is as large as possible while also being inline because that is the
constructor that Rust Binder actually needs.
However, to avoid complications in examples, we still need the current
constructor. So rename it to with_capacity(), which is the idiomatic
Rust name for this kind constructor.
Reviewed-by: Burak Emir <bqe@google.com>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
