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