[][src]Struct cargo_raze::planning::CrateCatalogEntry

pub struct CrateCatalogEntry { /* fields omitted */ }

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]

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]

Emits a complete path to this dependency and default target using the given settings.

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.