pub struct Survey { /* private fields */ }Expand description
A target’s managed paths against its resolved profile, in path order.
Implementations§
Source§impl Survey
impl Survey
Sourcepub const fn scaffolds(&self) -> &BTreeMap<ScaffoldId, Scaffold>
pub const fn scaffolds(&self) -> &BTreeMap<ScaffoldId, Scaffold>
What was decided of every active scaffold.
Sourcepub fn exists(
&self,
path: &RelPath,
part: Option<&str>,
) -> Option<&[(String, bool)]>
pub fn exists( &self, path: &RelPath, part: Option<&str>, ) -> Option<&[(String, bool)]>
How each path and glob of the when.exists of the file at path, or of part’s part of
it, came out: whether it will exist. None when its other gates left it unchecked.
Sourcepub fn gated(&self, path: &RelPath, part: Option<&str>) -> Option<&Reason>
pub fn gated(&self, path: &RelPath, part: Option<&str>) -> Option<&Reason>
Why the gates turned off the file at path, or part’s part of it.
Sourcepub fn unfinished(&self) -> bool
pub fn unfinished(&self) -> bool
Whether an update is unfinished: conflicts wait in .devset/conflicts/.
Sourcepub fn wanted(&self, entry: &Entry, target: &Target) -> Result<Option<Vec<u8>>>
pub fn wanted(&self, entry: &Entry, target: &Target) -> Result<Option<Vec<u8>>>
entry’s file as the profile would have it: the profile’s file, or for a part, the file
in target with the part as the profile has it; None when no layer provides it.
§Errors
Error::Parse, the part cannot be written into its file.Error::Io, the file cannot be read.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Survey
impl RefUnwindSafe for Survey
impl Send for Survey
impl Sync for Survey
impl Unpin for Survey
impl UnsafeUnpin for Survey
impl UnwindSafe for Survey
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