Registry / utility / arrayref

arrayref

JSON →
library0.3.9rscratesunverified

Macros to take array references of slices

# Cargo.toml [dependencies] arrayref = "0.3.9"
INSTALL
IMPORT
SIG · ARRAYREF
A
arrayref
utilityrustv0.3.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

array_ref
use arrayref::array_ref;

Create a fixed-size array reference from a slice.

use arrayref::array_ref; let slice: &[u8] = &[1, 2, 3, 4]; let arr: &[u8; 2] = array_ref!(slice, 0, 2); println!("{:?}", arr);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
2
Resources
arrayref — cargo add arrayref · libregistry