Debian Codegraph @

debian/rust-vendor/bitvec/doc/array/api.md

raw
1 # Port of Array Inherent Methods
2
3 This module ports the inherent methods available on the [array] fundamental
4 type.
5
6 As of 1.56, only `.map()` is stable. The `.as_slice()` and `.as_mut_slice()`
7 methods are ported, as the *behavior* has always been stable, and only the name
8 is new.
9
10 The remaining methods (as of 1.56, `.each_mut()`, `.each_ref()`, `.zip()`) are
11 not ported. While `BitArray` is capable of implementing their behavior with the
12 existing crate APIs, the `const`-generic system is not yet able to allow
13 construction of an array whose length is dependent on an associated `const` in a
14 type parameter.
15
16 These methods will not be available until the `const`-generic system improves
17 enough for `bitvec 2` to use the proper `BitArray` API.
18
19 [array]: https://doc.rust-lang.org/std/primitive.array.html