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 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, 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.