Skip to main content

Survey

Struct Survey 

Source
pub struct Survey { /* private fields */ }
Expand description

A target’s managed paths against its resolved profile, in path order.

Implementations§

Source§

impl Survey

Source

pub const fn resolved(&self) -> &Resolved

The profile surveyed against.

Source

pub fn entries(&self) -> &[Entry]

Every provided or recorded path, in order.

Source

pub const fn scaffolds(&self) -> &BTreeMap<ScaffoldId, Scaffold>

What was decided of every active scaffold.

Source

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.

Source

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.

Source

pub fn unfinished(&self) -> bool

Whether an update is unfinished: conflicts wait in .devset/conflicts/.

Source

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
Source

pub fn drifted(&self) -> bool

Whether apply --force would write a file: the drift gate.

Trait Implementations§

Source§

impl Debug for Survey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.