[−][src]Struct cargo_raze::planning::CrateCatalogEntry
An entry in the Crate catalog for a single crate.
Methods
impl CrateCatalogEntry
[src]
pub fn new(
package: &Package,
is_root: bool,
is_root_dep: bool
) -> CrateCatalogEntry
[src]
package: &Package,
is_root: bool,
is_root_dep: bool
) -> CrateCatalogEntry
pub fn default_build_target_name(&self) -> &str
[src]
Yields the name of the default target for this crate (sanitized).
pub fn package(&self) -> &Package
[src]
Returns a reference to the contained package.
pub fn is_root(&self) -> bool
[src]
Returns whether or not this is the root crate in the workspace.
pub fn is_root_dep(&self) -> bool
[src]
Returns whether or not this is a dependency of the workspace root crate.
pub fn expected_vendored_path(&self) -> String
[src]
Returns the packages expected path during current execution.
Not for use except during planning as path is local to run location.
pub fn local_build_path(&self, settings: &RazeSettings) -> String
[src]
Yields the expected location of the build file (relative to execution path).
pub fn workspace_path(&self, settings: &RazeSettings) -> String
[src]
Yields the precise path to this dependency for the provided settings.
pub fn workspace_path_and_default_target(
&self,
settings: &RazeSettings
) -> String
[src]
&self,
settings: &RazeSettings
) -> String
Emits a complete path to this dependency and default target using the given settings.
Auto Trait Implementations
impl Send for CrateCatalogEntry
impl Sync for CrateCatalogEntry
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,