pub struct AllocationReport {
pub total_turnover: f64,
pub mean_turnover: f64,
pub weight_violations: Vec<WeightViolation>,
pub valid: bool,
}Expand description
The full allocation score: aggregate weight validity across every step plus the trajectory’s turnover.
Fields§
§total_turnover: f64§mean_turnover: f64total_turnover / steps, or 0 for an empty trajectory.
weight_violations: Vec<WeightViolation>Every weight violation found, across all steps (a non-empty list = ineligible).
valid: boolTrait Implementations§
Source§impl Clone for AllocationReport
impl Clone for AllocationReport
Source§fn clone(&self) -> AllocationReport
fn clone(&self) -> AllocationReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllocationReport
impl Debug for AllocationReport
Auto Trait Implementations§
impl Freeze for AllocationReport
impl RefUnwindSafe for AllocationReport
impl Send for AllocationReport
impl Sync for AllocationReport
impl Unpin for AllocationReport
impl UnsafeUnpin for AllocationReport
impl UnwindSafe for AllocationReport
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