ergoplatform / ergoplatform/bounded-vec

Add `push` that fails if upper bound is violated

Open
#9 5 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.