pub struct Package { /* private fields */ }
Implementations§
Source§impl Package
impl Package
pub fn new(package_type: PackageType) -> Self
pub fn name(&self) -> &str
pub fn install(&self, version: Option<&str>) -> Result<()>
pub fn installed(&self) -> Result<()>
pub fn version(&self) -> Result<String>
pub fn execute_to_stdout(&self, arg: &str) -> Result<()>
pub fn execute_to_string(&self, arg: &str) -> Result<String>
Auto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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