pub struct ResolutionView { /* private fields */ }Implementations§
Source§impl ResolutionView
impl ResolutionView
pub fn from_snapshot( candidate: &SourcePackage, selected: Vec<(ResolutionEntry, Arc<SourcePackage>)>, ) -> Result<Self, String>
pub fn entries(&self) -> &[ResolutionEntry]
pub fn route( &self, family: &WebFamily, selector: &DependencySelector, ) -> Option<&ResolutionEntry>
pub const fn digest(&self) -> Digest
pub fn materialize(&self, empty_root: impl AsRef<Path>) -> Result<(), String>
pub fn inspect(root: impl AsRef<Path>) -> Result<Option<Digest>, String>
Trait Implementations§
Source§impl Clone for ResolutionView
impl Clone for ResolutionView
Source§fn clone(&self) -> ResolutionView
fn clone(&self) -> ResolutionView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolutionView
impl Debug for ResolutionView
impl Eq for ResolutionView
Source§impl PartialEq for ResolutionView
impl PartialEq for ResolutionView
impl StructuralPartialEq for ResolutionView
Auto Trait Implementations§
impl Freeze for ResolutionView
impl RefUnwindSafe for ResolutionView
impl Send for ResolutionView
impl Sync for ResolutionView
impl Unpin for ResolutionView
impl UnsafeUnpin for ResolutionView
impl UnwindSafe for ResolutionView
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