Struct cargo_rdme::Project
source · [−]pub struct Project { /* private fields */ }Implementations
sourceimpl Project
impl Project
sourcepub fn from_current_dir() -> Result<Project, ProjectError>
pub fn from_current_dir() -> 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(
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) -> &str
Trait Implementations
impl Eq for Project
impl StructuralEq for Project
impl StructuralPartialEq for Project
Auto Trait Implementations
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more