Index: Cargo.toml ================================================================== --- Cargo.toml +++ Cargo.toml @@ -1,8 +1,8 @@ [package] name = "idbag" -version = "0.2.1" +version = "0.2.2" edition = "2021" license = "0BSD" # https://crates.io/category_slugs categories = [ "data-structures" ] keywords = [ "bag", "identifier" ] Index: src/lib.rs ================================================================== --- src/lib.rs +++ src/lib.rs @@ -317,10 +317,19 @@ "#] #[must_use] pub fn into_inner(this: Self) -> Option<[]> { Arc::<[]>::into_inner(this.0) } + + + #[doc = r#" + Return the strong count of internal `Arc`. + "#] + #[must_use] + pub fn strong_count(&self) -> usize { + Arc::strong_count(&self.0) + } } impl Borrow<$int_type> for [] { fn borrow(&self) -> &$int_type { (*self.0).borrow() Index: www/changelog.md ================================================================== --- www/changelog.md +++ www/changelog.md @@ -2,18 +2,28 @@ ⚠️ indicates a breaking change. ## [Unreleased] -[Details](/vdiff?from=idbag-0.2.1&to=trunk) +[Details](/vdiff?from=idbag-0.2.2&to=trunk) ### Added ### Changed ### Removed +--- + +## [0.2.2] - 2024-11-10 + +[Details](/vdiff?from=idbag-0.2.1&to=idbag-0.2.2) + +### Added + +- Add `strong_count()` to `ArcId*` types. + --- ## [0.2.1] - 2024-10-02 [Details](/vdiff?from=idbag-0.2.0&to=idbag-0.2.1)