pub struct ProjectRegistry { /* private fields */ }Implementations§
Source§impl ProjectRegistry
impl ProjectRegistry
pub fn new( default_project: String, configs: BTreeMap<String, ProjectConfig>, ) -> Result<Self>
pub fn list(&self) -> Vec<Project>
pub fn names(&self) -> BTreeSet<String>
pub fn insert_named( &mut self, name: String, config: ProjectConfig, ) -> Result<Project>
pub fn get(&self, name: &str) -> Option<Project>
pub fn default(&self) -> Option<Project>
pub fn resolve(&self, project: &str, write: bool) -> Result<Project>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProjectRegistry
impl RefUnwindSafe for ProjectRegistry
impl Send for ProjectRegistry
impl Sync for ProjectRegistry
impl Unpin for ProjectRegistry
impl UnsafeUnpin for ProjectRegistry
impl UnwindSafe for ProjectRegistry
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