ergoplatform / ergoplatform/bounded-vec
Add `push` that fails if upper bound is violated
Open
- Dominant language
- Rust
- Stars
- 11
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
from #8 by @SethDusek:
>This will be useful for using BoundedVec in sigma-rust. Also, I was wondering, what are your thoughts on adding a try_push function to BoundedVec? It'd make it a bit easier to use, it could return an Option or Result if there's no more room in the vector.
Contributor guide
Assessment
This issue has not been assessed yet.