pub trait PackageManager {
// Required methods
fn install<'a>(
&'a self,
packages: impl Iterator<Item = &'a str>,
) -> Vec<&'a str>;
fn update(&self) -> Vec<&str>;
fn upgrade(&self) -> Vec<&str>;
}
Required Methods§
fn install<'a>( &'a self, packages: impl Iterator<Item = &'a str>, ) -> Vec<&'a str>
fn update(&self) -> Vec<&str>
fn upgrade(&self) -> Vec<&str>
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.