Home
last modified time | relevance | path

Searched refs:AbsPathBuf (Results 1 – 25 of 62) sorted by relevance

123

/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/paths/src/
H A Dlib.rs12 pub struct AbsPathBuf(PathBuf); struct
14 impl From<AbsPathBuf> for PathBuf {
15 fn from(AbsPathBuf(path_buf): AbsPathBuf) -> PathBuf { in from()
20 impl ops::Deref for AbsPathBuf { implementation
27 impl AsRef<Path> for AbsPathBuf { implementation
33 impl AsRef<AbsPath> for AbsPathBuf { implementation
39 impl Borrow<AbsPath> for AbsPathBuf { implementation
51 Ok(AbsPathBuf(path_buf)) in try_from()
55 impl TryFrom<&str> for AbsPathBuf { implementation
68 impl AbsPathBuf { implementation
[all …]
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/paths/src/
H A Dlib.rs12 pub struct AbsPathBuf(PathBuf); struct
14 impl From<AbsPathBuf> for PathBuf {
15 fn from(AbsPathBuf(path_buf): AbsPathBuf) -> PathBuf { in from()
20 impl ops::Deref for AbsPathBuf { implementation
27 impl AsRef<Path> for AbsPathBuf { implementation
33 impl AsRef<AbsPath> for AbsPathBuf { implementation
39 impl Borrow<AbsPath> for AbsPathBuf { implementation
51 Ok(AbsPathBuf(path_buf)) in try_from()
55 impl TryFrom<&str> for AbsPathBuf { implementation
68 impl AbsPathBuf { implementation
[all …]
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/vfs/src/
H A Dloader.rs4 use paths::{AbsPath, AbsPathBuf};
10 Files(Vec<AbsPathBuf>),
28 pub include: Vec<AbsPathBuf>,
29 pub exclude: Vec<AbsPathBuf>,
53 Loaded { files: Vec<(AbsPathBuf, Option<Vec<u8>>)> },
70 fn invalidate(&mut self, path: AbsPathBuf); in invalidate() argument
86 pub fn rs_files_recursively(base: AbsPathBuf) -> Entry { in rs_files_recursively()
98 pub fn local_cargo_package(base: AbsPathBuf) -> Entry { in local_cargo_package()
110 pub fn cargo_package_dependency(base: AbsPathBuf) -> Entry { in cargo_package_dependency()
164 let mut include: Option<&AbsPathBuf> = None; in includes_path()
[all …]
H A Dvfs_path.rs4 use paths::{AbsPath, AbsPathBuf};
31 VfsPath::from(AbsPathBuf::assert(path.into())) in new_real_path()
269 use super::{AbsPathBuf, VfsPath};
270 VfsPath::from(AbsPathBuf::try_from(str).unwrap())
277 PathBuf(AbsPathBuf),
281 impl From<AbsPathBuf> for VfsPath {
282 fn from(v: AbsPathBuf) -> Self {
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/vfs/src/
H A Dloader.rs4 use paths::{AbsPath, AbsPathBuf};
10 Files(Vec<AbsPathBuf>),
28 pub include: Vec<AbsPathBuf>,
29 pub exclude: Vec<AbsPathBuf>,
53 Loaded { files: Vec<(AbsPathBuf, Option<Vec<u8>>)> },
70 fn invalidate(&mut self, path: AbsPathBuf); in invalidate() argument
86 pub fn rs_files_recursively(base: AbsPathBuf) -> Entry { in rs_files_recursively()
98 pub fn local_cargo_package(base: AbsPathBuf) -> Entry { in local_cargo_package()
110 pub fn cargo_package_dependency(base: AbsPathBuf) -> Entry { in cargo_package_dependency()
164 let mut include: Option<&AbsPathBuf> = None; in includes_path()
[all …]
H A Dvfs_path.rs4 use paths::{AbsPath, AbsPathBuf};
31 VfsPath::from(AbsPathBuf::assert(path.into())) in new_real_path()
269 use super::{AbsPathBuf, VfsPath};
270 VfsPath::from(AbsPathBuf::try_from(str).unwrap())
277 PathBuf(AbsPathBuf),
281 impl From<AbsPathBuf> for VfsPath {
282 fn from(v: AbsPathBuf) -> Self {
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/project_model/src/
H A Dmanifest_path.rs4 use paths::{AbsPath, AbsPathBuf};
17 file: AbsPathBuf,
20 impl TryFrom<AbsPathBuf> for ManifestPath {
21 type Error = AbsPathBuf;
23 fn try_from(file: AbsPathBuf) -> Result<Self, Self::Error> { in try_from()
H A Dsysroot.rs11 use paths::{AbsPath, AbsPathBuf};
17 root: AbsPathBuf,
74 pub fn load(sysroot_src_dir: AbsPathBuf) -> Result<Sysroot> { in load()
136 fn discover_sysroot_dir(current_dir: &AbsPath) -> Result<AbsPathBuf> { in discover_sysroot_dir() argument
141 Ok(AbsPathBuf::assert(PathBuf::from(stdout))) in discover_sysroot_dir()
145 sysroot_path: &AbsPathBuf, in discover_sysroot_src_dir() argument
147 ) -> Result<AbsPathBuf> { in discover_sysroot_src_dir() argument
149 let path = AbsPathBuf::try_from(path.as_str()) in discover_sysroot_src_dir()
189 fn get_rust_src(sysroot_path: &AbsPath) -> Option<AbsPathBuf> { in get_rust_src() argument
H A Dproject_json.rs11 use paths::{AbsPath, AbsPathBuf};
20 pub(crate) sysroot_src: Option<AbsPathBuf>,
21 project_root: AbsPathBuf,
30 pub(crate) root_module: AbsPathBuf,
37 pub(crate) proc_macro_dylib_path: Option<AbsPathBuf>,
39 pub(crate) include: Vec<AbsPathBuf>,
40 pub(crate) exclude: Vec<AbsPathBuf>,
H A Dbuild_scripts.rs17 use paths::AbsPathBuf;
39 pub(crate) out_dir: Option<AbsPathBuf>,
41 pub(crate) proc_macro_dylib_path: Option<AbsPathBuf>,
140 AbsPathBuf::assert(PathBuf::from(message.out_dir.into_os_string())); in run()
160 let filename = AbsPathBuf::assert(PathBuf::from(&filename)); in run()
H A Dlib.rs37 use paths::{AbsPath, AbsPathBuf};
59 pub fn from_manifest_file(path: AbsPathBuf) -> Result<ProjectManifest> { in from_manifest_file()
126 .map(AbsPathBuf::assert) in discover()
132 pub fn discover_all(paths: &[AbsPathBuf]) -> Vec<ProjectManifest> { in discover_all()
H A Dcargo_workspace.rs11 use paths::{AbsPath, AbsPathBuf};
33 workspace_root: AbsPathBuf,
54 Path(AbsPathBuf),
208 pub root: AbsPathBuf,
330 manifest: AbsPathBuf::assert(PathBuf::from(&manifest_path)).try_into().unwrap(), in new()
348 root: AbsPathBuf::assert(PathBuf::from(&meta_tgt.src_path)), in new()
390 AbsPathBuf::assert(PathBuf::from(meta.workspace_root.into_os_string())); in new()
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/project_model/src/
H A Dmanifest_path.rs4 use paths::{AbsPath, AbsPathBuf};
17 file: AbsPathBuf,
20 impl TryFrom<AbsPathBuf> for ManifestPath {
21 type Error = AbsPathBuf;
23 fn try_from(file: AbsPathBuf) -> Result<Self, Self::Error> { in try_from()
H A Dsysroot.rs11 use paths::{AbsPath, AbsPathBuf};
17 root: AbsPathBuf,
74 pub fn load(sysroot_src_dir: AbsPathBuf) -> Result<Sysroot> { in load()
136 fn discover_sysroot_dir(current_dir: &AbsPath) -> Result<AbsPathBuf> { in discover_sysroot_dir() argument
141 Ok(AbsPathBuf::assert(PathBuf::from(stdout))) in discover_sysroot_dir()
145 sysroot_path: &AbsPathBuf, in discover_sysroot_src_dir() argument
147 ) -> Result<AbsPathBuf> { in discover_sysroot_src_dir() argument
149 let path = AbsPathBuf::try_from(path.as_str()) in discover_sysroot_src_dir()
189 fn get_rust_src(sysroot_path: &AbsPath) -> Option<AbsPathBuf> { in get_rust_src() argument
H A Dproject_json.rs11 use paths::{AbsPath, AbsPathBuf};
20 pub(crate) sysroot_src: Option<AbsPathBuf>,
21 project_root: AbsPathBuf,
30 pub(crate) root_module: AbsPathBuf,
37 pub(crate) proc_macro_dylib_path: Option<AbsPathBuf>,
39 pub(crate) include: Vec<AbsPathBuf>,
40 pub(crate) exclude: Vec<AbsPathBuf>,
H A Dbuild_scripts.rs17 use paths::AbsPathBuf;
39 pub(crate) out_dir: Option<AbsPathBuf>,
41 pub(crate) proc_macro_dylib_path: Option<AbsPathBuf>,
140 AbsPathBuf::assert(PathBuf::from(message.out_dir.into_os_string())); in run()
160 let filename = AbsPathBuf::assert(PathBuf::from(&filename)); in run()
H A Dlib.rs37 use paths::{AbsPath, AbsPathBuf};
59 pub fn from_manifest_file(path: AbsPathBuf) -> Result<ProjectManifest> { in from_manifest_file()
126 .map(AbsPathBuf::assert) in discover()
132 pub fn discover_all(paths: &[AbsPathBuf]) -> Vec<ProjectManifest> { in discover_all()
H A Dcargo_workspace.rs11 use paths::{AbsPath, AbsPathBuf};
33 workspace_root: AbsPathBuf,
54 Path(AbsPathBuf),
206 pub root: AbsPathBuf,
322 manifest: AbsPathBuf::assert(PathBuf::from(&manifest_path)).try_into().unwrap(), in new()
339 root: AbsPathBuf::assert(PathBuf::from(&meta_tgt.src_path)), in new()
381 AbsPathBuf::assert(PathBuf::from(meta.workspace_root.into_os_string())); in new()
/dports/security/cargo-audit/rustsec-cargo-audit-v0.15.2/cargo-audit/cargo-crates/abscissa_core-0.5.2/src/
H A Dpath.rs6 pub use canonical_path::{CanonicalPath as AbsPath, CanonicalPathBuf as AbsPathBuf};
42 exe: AbsPathBuf,
45 root: AbsPathBuf,
48 secrets: Option<AbsPathBuf>,
60 P: Into<AbsPathBuf>, in from_exe_path() argument
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/vfs-notify/src/
H A Dlib.rs13 use paths::{AbsPath, AbsPathBuf};
27 Invalidate(AbsPathBuf),
43 fn invalidate(&mut self, path: AbsPathBuf) { in invalidate() argument
124 .map(|path| AbsPathBuf::try_from(path).unwrap()) in run()
162 ) -> Vec<(AbsPathBuf, Option<Vec<u8>>)> { in load_entry() argument
191 let abs_path = AbsPathBuf::assert(entry.into_path()); in load_entry()
215 fn watch(&mut self, path: AbsPathBuf) { in watch() argument
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/vfs-notify/src/
H A Dlib.rs13 use paths::{AbsPath, AbsPathBuf};
27 Invalidate(AbsPathBuf),
43 fn invalidate(&mut self, path: AbsPathBuf) { in invalidate() argument
124 .map(|path| AbsPathBuf::try_from(path).unwrap()) in run()
162 ) -> Vec<(AbsPathBuf, Option<Vec<u8>>)> { in load_entry() argument
191 let abs_path = AbsPathBuf::assert(entry.into_path()); in load_entry()
215 fn watch(&mut self, path: AbsPathBuf) { in watch() argument
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/proc_macro_api/src/
H A Dlib.rs12 use paths::AbsPathBuf;
50 path: AbsPathBuf,
56 pub fn new(path: AbsPathBuf) -> io::Result<MacroDylib> { in new()
76 dylib_path: AbsPathBuf,
113 process_path: AbsPathBuf, in spawn() argument
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/proc_macro_api/src/
H A Dlib.rs12 use paths::AbsPathBuf;
50 path: AbsPathBuf,
56 pub fn new(path: AbsPathBuf) -> io::Result<MacroDylib> { in new()
76 dylib_path: AbsPathBuf,
113 process_path: AbsPathBuf, in spawn() argument
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/proc_macro_srv/src/tests/
H A Dmod.rs6 use paths::AbsPathBuf;
99 let path = AbsPathBuf::assert(fixtures::proc_macro_test_dylib_path()); in test_version_check()
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/proc_macro_srv/src/tests/
H A Dmod.rs6 use paths::AbsPathBuf;
99 let path = AbsPathBuf::assert(fixtures::proc_macro_test_dylib_path()); in test_version_check()

123