Struct cargo_rdme::Project
source · pub struct Project { /* private fields */ }Implementations§
source§impl 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§
source§impl PartialEq for Project
impl PartialEq for Project
impl Eq 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§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.