pub struct Calculation {
pub ship: ItemResult,
pub mode: Option<ItemResult>,
pub items: Vec<ItemResult>,
pub character: ItemResult,
pub buffs: Vec<ProjectedBuff>,
pub outgoing: Projection,
pub violations: Option<Vec<Violation>>,
}Expand description
The result of calculate().
Fields§
§ship: ItemResultThe ship.
mode: Option<ItemResult>The active mode, if the ship has one.
items: Vec<ItemResult>Index-parallel to Fit::items: same length, same order.
character: ItemResultThe character.
buffs: Vec<ProjectedBuff>The buffs that landed, ordered by id: those of Fit::incoming, plus
the ones the fit’s own bursts hand out. What is missing lost to another
source of the same buff, or the SDE has no such buff.
outgoing: ProjectionAll outgoing projections (effects and buffs).
violations: Option<Vec<Violation>>The fitting rules the fit breaks; only with Options::validate.
Trait Implementations§
Source§impl Debug for Calculation
impl Debug for Calculation
Auto Trait Implementations§
impl Freeze for Calculation
impl RefUnwindSafe for Calculation
impl Send for Calculation
impl Sync for Calculation
impl Unpin for Calculation
impl UnsafeUnpin for Calculation
impl UnwindSafe for Calculation
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