pub struct RustProject {
sysroot: Utf8PathBuf,
sysroot_src: Utf8PathBuf,
crates: Vec<Crate>,
runnables: Vec<Runnable>,
}
Expand description
A rust-project.json
workspace representation. See
rust-analyzer documentation for a thorough description of this interface.
Fields§
§sysroot: Utf8PathBuf
The path to a Rust sysroot.
sysroot_src: Utf8PathBuf
Path to the directory with source code of sysroot crates.
crates: Vec<Crate>
The set of crates comprising the current project. Must include all transitive dependencies as well as sysroot crate (libstd, libcore and such).
runnables: Vec<Runnable>
The set of runnables, such as tests or benchmarks, that can be found in the crate.
Trait Implementations§
Source§impl Debug for RustProject
impl Debug for RustProject
Auto Trait Implementations§
impl Freeze for RustProject
impl RefUnwindSafe for RustProject
impl Send for RustProject
impl Sync for RustProject
impl Unpin for RustProject
impl UnwindSafe for RustProject
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more