lib-misc-utils · crate

arrayvec

Libraryenvironment

Kinogaki's own arrayvec, published under the crates.io name so the frozen naga, wgpu, wgpu-core, wgpu-hal and blake3 resolve to it through [patch.crates-io].

Repository
lib-misc-utils (kinogaki/lib-misc-utils)
Folder
libs/lib-misc-utils/crates/arrayvec
Source
5 files, 839 lines
Tests
1 file, 144 lines
depends onused by tests alonedependencies for tests alone are listed below, not drawn

What it is

Kinogaki's own arrayvec, published under the crates.io name so the frozen naga, wgpu, wgpu-core, wgpu-hal and blake3 resolve to it through [patch.crates-io]. It is not upstream arrayvec: it has the API those crates call.

  • ArrayVec<T, CAP>: a vector with inline storage for at most CAP elements. Its storage is buffer::Buffer, the crate's only unsafe code: a [MaybeUninit<T>; CAP] whose first len slots are initialised. Every other operation (insert, remove, drain, retain, extend...) is safe code over the buffer's push, pop, truncate and slice views.
  • ArrayString<CAP>: a string in CAP inline bytes, in safe code.

Depends on

None.

Third-party

None.

Used by

CrateRepositoryAsWhat it is
smallveclib-misc-utilsnormalKinogaki's own smallvec, published under the crates.io name so the frozen wgpu, wgpu-core, wgpu-hal and harfrust resolve to it through [patch.crates-io], and used by kinogaki-ui.

Third-party crates using it

blake3, naga, wgpu, wgpu-core, wgpu-hal

Modules

Public types and traits

At the crate root

Structs ArrayStringArrayVecCapacityErrorDrainIntoIter

By module: 4 public types and traits in 2 modules

array_string ArrayString

array_vec ArrayVecDrainIntoIter