Practice
Learn
← Quit
0 / 0 correct
Rust
Medium
1 of 10
Why accept `impl AsRef<Path>` in a function like open_config(path)?
A
It validates the path
B
Callers can pass &str, String, PathBuf or &Path without converting
C
It avoids monomorphization
D
It makes the function async