Searched refs:ScopedPath (Results 1 – 3 of 3) sorted by relevance
27 pub struct ScopedPath<P: AsRef<Path>>(P); struct29 impl<P: AsRef<Path>> ScopedPath<P> { implementation32 Ok(ScopedPath(p)) in create()36 impl<P: AsRef<Path>> AsRef<Path> for ScopedPath<P> { implementation42 impl<P: AsRef<Path>> Deref for ScopedPath<P> { implementation50 impl<P: AsRef<Path>> Drop for ScopedPath<P> { implementation86 let scoped_path = ScopedPath::create(&tmp_path).unwrap(); in scopedpath_exists()96 let _scoped_path = ScopedPath(&tmp_path); in scopedpath_notexists()106 let scoped_path = ScopedPath::create(&tmp_path).unwrap(); in scopedpath_panic()
35 pub struct ScopedPath<P: AsRef<Path>>(P); struct37 impl<P: AsRef<Path>> ScopedPath<P> { implementation40 Ok(ScopedPath(p)) in create()44 impl<P: AsRef<Path>> AsRef<Path> for ScopedPath<P> { implementation50 impl<P: AsRef<Path>> Deref for ScopedPath<P> { implementation58 impl<P: AsRef<Path>> Drop for ScopedPath<P> { implementation109 let scoped_path = ScopedPath::create(&tmp_path).unwrap(); in scopedpath_exists()119 let _scoped_path = ScopedPath(&tmp_path); in scopedpath_notexists()129 let scoped_path = ScopedPath::create(&tmp_path).unwrap(); in scopedpath_panic()
71 struct ScopedPath<P: AsRef<Path>>(P); struct73 impl<P: AsRef<Path>> AsRef<Path> for ScopedPath<P> { implementation79 impl<P: AsRef<Path>> Deref for ScopedPath<P> { implementation87 impl<P: AsRef<Path>> Drop for ScopedPath<P> { implementation371 fn setup<P: AsRef<Path>>(name: P) -> (ScopedPath<OsString>, Server) { in setup()396 let test_dir = ScopedPath(OsString::from_vec(buf.into_bytes())); in setup()