MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / new

Method new

crates/rustc_codegen_spirv/src/attr.rs:27–33  ·  view source on GitHub ↗
(args: impl AsRef<[u32]>)

Source from the content-addressed store, hash-verified

25
26impl ExecutionModeExtra {
27 pub(crate) fn new(args: impl AsRef<[u32]>) -> Self {
28 let _args = args.as_ref();
29 let mut args = [0; 3];
30 args[.._args.len()].copy_from_slice(_args);
31 let len = _args.len() as u8;
32 Self { args, len }
33 }
34}
35
36impl AsRef<[u32]> for ExecutionModeExtra {

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected