[−][src]Enum ra_ap_project_model::ProjectWorkspace
Variants
Project workspace was discovered by running cargo metadata
and rustc --print sysroot
.
Fields of Cargo
cargo: CargoWorkspace
sysroot: Sysroot
Project workspace was manually specified using a rust-project.json
file.
Fields of Json
project: ProjectJson
Implementations
impl ProjectWorkspace
[src]
pub fn load(
manifest: ProjectManifest,
cargo_config: &CargoConfig,
with_sysroot: bool
) -> Result<ProjectWorkspace>
[src]
manifest: ProjectManifest,
cargo_config: &CargoConfig,
with_sysroot: bool
) -> Result<ProjectWorkspace>
pub fn to_roots(&self) -> Vec<PackageRoot>
[src]
Returns the roots for the current ProjectWorkspace
The return type contains the path and whether or not
the root is a member of the current workspace
pub fn proc_macro_dylib_paths(&self) -> Vec<AbsPathBuf>
[src]
pub fn n_packages(&self) -> usize
[src]
pub fn to_crate_graph(
&self,
target: Option<&str>,
proc_macro_client: &ProcMacroClient,
load: &mut dyn FnMut(&AbsPath) -> Option<FileId>
) -> CrateGraph
[src]
&self,
target: Option<&str>,
proc_macro_client: &ProcMacroClient,
load: &mut dyn FnMut(&AbsPath) -> Option<FileId>
) -> CrateGraph
Trait Implementations
impl Clone for ProjectWorkspace
[src]
fn clone(&self) -> ProjectWorkspace
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ProjectWorkspace
[src]
impl Eq for ProjectWorkspace
[src]
impl PartialEq<ProjectWorkspace> for ProjectWorkspace
[src]
fn eq(&self, other: &ProjectWorkspace) -> bool
[src]
fn ne(&self, other: &ProjectWorkspace) -> bool
[src]
impl StructuralEq for ProjectWorkspace
[src]
impl StructuralPartialEq for ProjectWorkspace
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProjectWorkspace
impl Send for ProjectWorkspace
impl Sync for ProjectWorkspace
impl Unpin for ProjectWorkspace
impl UnwindSafe for ProjectWorkspace
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,