pub struct SourcePlan<S> { /* private fields */ }Implementations§
Source§impl SourcePlan<Unplanned>
impl SourcePlan<Unplanned>
pub fn new(set: SourceSet) -> Self
pub fn from_locator(locator: &ResourceLocator) -> Result<Self>
pub fn from_requested_resource(resource: &RequestedResource) -> Result<Self>
pub fn from_resolved_resource(resource: &ResolvedResource) -> Result<Self>
pub fn plan(self, strategy: SelectionStrategy) -> PlannedSources
pub fn into_planned(self, strategy: SelectionStrategy) -> PlannedSources
Source§impl SourcePlan<Planned>
impl SourcePlan<Planned>
pub fn from_locator( locator: &ResourceLocator, strategy: SelectionStrategy, ) -> Result<Self>
pub fn from_requested_resource( resource: &RequestedResource, strategy: SelectionStrategy, ) -> Result<Self>
pub fn from_resolved_resource( resource: &ResolvedResource, strategy: SelectionStrategy, ) -> Result<Self>
pub fn strategy(&self) -> &SelectionStrategy
pub fn candidates(&self) -> &[ResolvedSourceCandidate]
Trait Implementations§
Source§impl<S: Clone> Clone for SourcePlan<S>
impl<S: Clone> Clone for SourcePlan<S>
Source§fn clone(&self) -> SourcePlan<S>
fn clone(&self) -> SourcePlan<S>
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 moreSource§impl<S: Debug> Debug for SourcePlan<S>
impl<S: Debug> Debug for SourcePlan<S>
Source§impl<S: PartialEq> PartialEq for SourcePlan<S>
impl<S: PartialEq> PartialEq for SourcePlan<S>
impl<S: Eq> Eq for SourcePlan<S>
impl<S> StructuralPartialEq for SourcePlan<S>
Auto Trait Implementations§
impl<S> Freeze for SourcePlan<S>where
S: Freeze,
impl<S> RefUnwindSafe for SourcePlan<S>where
S: RefUnwindSafe,
impl<S> Send for SourcePlan<S>where
S: Send,
impl<S> Sync for SourcePlan<S>where
S: Sync,
impl<S> Unpin for SourcePlan<S>where
S: Unpin,
impl<S> UnsafeUnpin for SourcePlan<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for SourcePlan<S>where
S: UnwindSafe,
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