MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / path_to_bytes

Function path_to_bytes

crates/cust/src/module.rs:133–136  ·  view source on GitHub ↗
(path: P)

Source from the content-addressed store, hash-verified

131
132#[cfg(unix)]
133fn path_to_bytes<P: AsRef<Path>>(path: P) -> Vec<u8> {
134 use std::os::unix::ffi::OsStrExt;
135 path.as_ref().as_os_str().as_bytes().to_vec()
136}
137
138#[cfg(not(unix))]
139fn path_to_bytes<P: AsRef<Path>>(path: P) -> Vec<u8> {

Callers 1

from_fileMethod · 0.85

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected