Registry / utility / as-slice

as-slice

JSON →
library0.2.1rscratesunverified

`AsSlice` and `AsMutSlice` traits

# Cargo.toml [dependencies] as-slice = "0.2.1"
INSTALL
IMPORT
SIG · AS-SLICE
A
as-slice
utilityrustv0.2.1
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.

AsSlice
use as_slice::AsSlice;

Convert a collection to a slice using AsSlice trait

use as_slice::AsSlice; fn main() { let v = vec![1, 2, 3]; let s: &[i32] = v.as_slice(); println!("{:?}", s); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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