fn path_in_crate<S>(relative: S) -> PathBuf
where
    S: Into<String>,
{
    PathBuf::from(relative.into())
}
/// Determine path in this crate. We can't use CARGO_MANIFEST_DIR for this because
/// we need the path of the caller. However, we can assume that cargo test
/// runs in the root dir of the crate, so we can just directly use the relative path.
Determine path in this crate. We can't use CARGO_MANIFEST_DIR for this because
we need the path of the caller. However, we can assume that cargo test
runs in the root dir of the crate, so we can just directly use the relative path.
Determine path in this crate . We can ' t use CARGO_MANIFEST_DIR for this because we need the path of the caller . However we can assume that cargo test runs in the root dir of the crate so we can just directly use the relative path .
fn path_in_crate<S>(relative: S) -> PathBuf
where
    S: Into<String>,
{
    PathBuf::from(relative.into())
}
fn path_in_crate < S > ( relative : S ) -> PathBuf where S : Into < String > , { PathBuf :: from ( relative . into ( ) ) }
Determine path in this crate.
Determine path in this crate .
relative
S