pub struct Project { /* private fields */ }Implementations§
Source§impl Project
impl Project
Sourcepub fn from_current_dir(
manifest_path: Option<&Path>,
) -> Result<Project, ProjectError>
pub fn from_current_dir( manifest_path: Option<&Path>, ) -> Result<Project, ProjectError>
Creates a Project the current directory. It will search ancestor paths until it finds
the root of the project.
pub fn from_current_dir_workspace_project( manifest_path: Option<&Path>, project_name: &str, ) -> Result<Project, ProjectError>
pub fn get_lib_entryfile_path(&self) -> Option<&Path>
pub fn get_bin_default_entryfile_path(&self) -> Option<&Path>
pub fn get_bin_entryfile_path(&self, name: &str) -> Option<&Path>
pub fn get_readme_path(&self) -> Option<PathBuf>
pub fn get_package_name(&self) -> &PackageName
Trait Implementations§
impl Eq for Project
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more