Skip to main content

Projection

Struct Projection 

Source
pub struct Projection {
    pub candidates: Vec<Candidate>,
    pub omissions: Vec<Omission>,
    pub collisions: Vec<Collision>,
    pub licence_refusal: Option<String>,
    pub record_defects: Vec<String>,
}
Expand description

The complete candidate artifact tree for one target.

A value, never a record: it carries no operation, no decision, and no apply state, and it is not serializable. A consumer renders it again from scratch rather than reading a saved copy.

Fields§

§candidates: Vec<Candidate>

Every candidate, sorted by destination.

§omissions: Vec<Omission>

The destinations the target’s own state withholds, each with its one reason. A destination the pair does not ship is absent, never omitted.

§collisions: Vec<Collision>

The block destinations whose existing document offers the block no place, a target-side defect staging explains and landing refuses.

§licence_refusal: Option<String>

Why the recorded code scanning provider’s licence condition refuses this target, or None where no condition applies or the licence satisfies it. A landing verb refuses on it and writes nothing; rk status reports it as a warning and still exits 0, because the target is not broken and the operator owns the licensing decision.

§record_defects: Vec<String>

Why a recorded capability cannot run at this target at all, which is a receipt nothing can honour rather than a decision anyone made. Empty on every target whose parameters came through resolution, because resolution refuses these before they are recorded.

Implementations§

Source§

impl Projection

Source

pub fn compute(input: &ProjectionInput) -> Result<Self, RkError>

The complete candidate tree for input, from this binary’s embedded sources alone.

§Errors

A source defect in this binary: an unknown technology or an unsupported pair as RkError::Usage, and as RkError::Other a destination two sources ship, a snippet the kind table does not classify, or a block this binary does not embed.

Trait Implementations§

Source§

impl Clone for Projection

Source§

fn clone(&self) -> Projection

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Projection

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for Projection

Source§

impl PartialEq for Projection

Source§

fn eq(&self, other: &Projection) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Projection

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.