pub struct Explanation {
pub key: Key,
pub chosen: Tier,
pub row: Row,
pub pinned: bool,
pub candidates: Vec<(Tier, Cost)>,
pub because: String,
}Expand description
Why a node’s placement is what it is — the content of beck explain place.
Fields§
§key: Key§chosen: Tier§row: Row§pinned: boolTrue when the tier was decided by a rule rather than by cost — an @on(...), purity, or a
Signal[Html]. The candidate costs below are still real, and for a pinned node the chosen
one is not required to be the cheapest: that is what pinning means.
candidates: Vec<(Tier, Cost)>Every tier, with the whole program’s cost when this node sits there and everything else stays where the solver put it. §4.7’s “candidates : data (cost 1.0), server (cost 3.1), …”.
because: StringTrait Implementations§
Source§impl Clone for Explanation
impl Clone for Explanation
Source§fn clone(&self) -> Explanation
fn clone(&self) -> Explanation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Explanation
impl RefUnwindSafe for Explanation
impl Send for Explanation
impl Sync for Explanation
impl Unpin for Explanation
impl UnwindSafe for Explanation
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