pub struct Solution {
pub tiers: BTreeMap<Key, Tier>,
pub explanations: Vec<Explanation>,
pub method: Method,
pub total: Cost,
pub churn: Vec<(Key, Tier, Tier)>,
pub ties: Vec<(Key, Vec<Tier>)>,
}Expand description
The solved placement of a whole program.
Fields§
§tiers: BTreeMap<Key, Tier>§explanations: Vec<Explanation>§method: Method§total: Cost§churn: Vec<(Key, Tier, Tier)>Nodes whose placement differs from beck.lock — §3.4’s “churn reported in CI”.
ties: Vec<(Key, Vec<Tier>)>Nodes where two tiers cost exactly the same and no lock settled it.
Implementations§
Source§impl Solution
impl Solution
pub fn explanation(&self, name: &str) -> Option<&Explanation>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
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