pub trait Installation: Eq + Ord {
// Required methods
fn path(&self) -> &PathBuf;
fn version(&self) -> &Version;
// Provided methods
fn location(&self) -> PathBuf { ... }
fn exec_path(&self) -> PathBuf { ... }
fn installed_modules(
&self,
) -> Result<impl IntoIterator<Item = Module>, UnityError> { ... }
fn get_modules(&self) -> Result<Vec<Module>, UnityError> { ... }
}
Required Methods§
Provided Methods§
fn location(&self) -> PathBuf
fn exec_path(&self) -> PathBuf
fn installed_modules( &self, ) -> Result<impl IntoIterator<Item = Module>, UnityError>
fn get_modules(&self) -> Result<Vec<Module>, UnityError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.