struct Planner<'a> {
root: &'a RepositoryRoot,
state: &'a FileState,
}Fields§
§root: &'a RepositoryRoot§state: &'a FileStateImplementations§
Source§impl<'a> Planner<'a>
impl<'a> Planner<'a>
const fn new(root: &'a RepositoryRoot, state: &'a FileState) -> Self
fn desired( &self, policy: &PathPolicy<'_>, ) -> Result<BTreeMap<RepositoryPath, &FileSpec>, FilesError>
fn real(&self) -> Result<Plan, FilesError>
fn snapshot(&self) -> Result<Plan, FilesError>
fn build( &self, origin: PlanOrigin, policy: &PathPolicy<'_>, desired: &BTreeMap<RepositoryPath, &FileSpec>, tracked: &BTreeSet<RepositoryPath>, repo: Option<&Repository>, ) -> Result<Plan, FilesError>
Sourcefn leftovers(
&self,
policy: &PathPolicy<'_>,
desired: &BTreeMap<RepositoryPath, &FileSpec>,
tracked: &BTreeSet<RepositoryPath>,
) -> Result<Leftovers, FilesError>
fn leftovers( &self, policy: &PathPolicy<'_>, desired: &BTreeMap<RepositoryPath, &FileSpec>, tracked: &BTreeSet<RepositoryPath>, ) -> Result<Leftovers, FilesError>
Sort the tracked paths that are not desired. Files that carry the generated header are stale. Other files in a managed path are foreign. Paths the state declares are never leftovers.
fn candidates( &self, desired: &BTreeMap<RepositoryPath, &'a FileSpec>, ) -> Result<BTreeMap<RepositoryPath, Candidate<'a>>, FilesError>
fn formatter_profiles( &self, candidates: &BTreeMap<RepositoryPath, Candidate<'_>>, ) -> Result<BTreeMap<FormatterSpec, BTreeMap<RepositoryPath, Vec<u8>>>, FilesError>
Auto Trait Implementations§
impl<'a> Freeze for Planner<'a>
impl<'a> RefUnwindSafe for Planner<'a>
impl<'a> Send for Planner<'a>
impl<'a> Sync for Planner<'a>
impl<'a> Unpin for Planner<'a>
impl<'a> UnsafeUnpin for Planner<'a>
impl<'a> UnwindSafe for Planner<'a>
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