Registry / utility / arref
library0.1.0rscratesunverified

Make borrow mut elements from an array easier.

# Cargo.toml [dependencies] arref = "0.1.0"
INSTALL
IMPORT
SIG · ARREF
A
arref
utilityrustv0.1.0
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_mut
use arref::array_ref_mut;

Borrow mutable references to multiple elements of an array.

use arref::array_ref_mut; fn main() { let mut arr = [1, 2, 3, 4]; let (a, b) = array_ref_mut!(&mut arr, 0, 2); *a = 10; println!("{:?}", arr); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
OpenAI (training)
2
Meta
1
Resources
arref — cargo add arref · libregistry