Home
last modified time | relevance | path

Searched refs:ScopedPath (Results 1 – 3 of 3) sorted by relevance

/external/libchromeos-rs/src/
Dscoped_path.rs27 pub struct ScopedPath<P: AsRef<Path>>(P); struct
29 impl<P: AsRef<Path>> ScopedPath<P> { implementation
32 Ok(ScopedPath(p)) in create()
36 impl<P: AsRef<Path>> AsRef<Path> for ScopedPath<P> { implementation
42 impl<P: AsRef<Path>> Deref for ScopedPath<P> { implementation
50 impl<P: AsRef<Path>> Drop for ScopedPath<P> { implementation
86 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()
/external/crosvm/sys_util/src/
Dscoped_path.rs35 pub struct ScopedPath<P: AsRef<Path>>(P); struct
37 impl<P: AsRef<Path>> ScopedPath<P> { implementation
40 Ok(ScopedPath(p)) in create()
44 impl<P: AsRef<Path>> AsRef<Path> for ScopedPath<P> { implementation
50 impl<P: AsRef<Path>> Deref for ScopedPath<P> { implementation
58 impl<P: AsRef<Path>> Drop for ScopedPath<P> { implementation
109 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()
/external/vm_tools/p9/src/server/
Dtests.rs71 struct ScopedPath<P: AsRef<Path>>(P); struct
73 impl<P: AsRef<Path>> AsRef<Path> for ScopedPath<P> { implementation
79 impl<P: AsRef<Path>> Deref for ScopedPath<P> { implementation
87 impl<P: AsRef<Path>> Drop for ScopedPath<P> { implementation
371 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()