summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2025-11-25 13:59:39 +0000
committerYury Norov (NVIDIA) <yury.norov@gmail.com>2025-11-26 11:25:35 -0500
commit6297fb3863d81b0970fd435476b837739c0ea4e7 (patch)
tree9f3da702df6d8951706d92cb57b820559b9546ac /tools/lib/python
parentd0cf6512bbcf77afb6102f886fcd7fd48b7ae043 (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