pub struct ResolutionResult {
pub root: ResolvedPackage,
pub all_packages: Vec<ResolvedPackage>,
}Fields§
§root: ResolvedPackage§all_packages: Vec<ResolvedPackage>Implementations§
Source§impl ResolutionResult
impl ResolutionResult
pub fn package_count(&self) -> usize
pub fn get_package(&self, id: &PackageId) -> Option<&ResolvedPackage>
pub fn package_ids(&self) -> Vec<&PackageId>
pub fn to_manifest(&self) -> HashMap<String, String>
Trait Implementations§
Source§impl Clone for ResolutionResult
impl Clone for ResolutionResult
Source§fn clone(&self) -> ResolutionResult
fn clone(&self) -> ResolutionResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolutionResult
impl RefUnwindSafe for ResolutionResult
impl Send for ResolutionResult
impl Sync for ResolutionResult
impl Unpin for ResolutionResult
impl UnsafeUnpin for ResolutionResult
impl UnwindSafe for ResolutionResult
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