pub struct Sector {
pub name: String,
pub portfolio_weight: f64,
pub benchmark_weight: f64,
pub portfolio_return: f64,
pub benchmark_return: f64,
}Expand description
A single sector used in Brinson-Hood-Beebower performance attribution.
Holds the portfolio and benchmark weights and returns for one sector (e.g. “Technology”, “Healthcare”) within a single measurement period.
Fields§
§name: StringHuman-readable sector name.
portfolio_weight: f64Portfolio weight in this sector; expected in [0, 1].
benchmark_weight: f64Benchmark weight in this sector; expected in [0, 1].
portfolio_return: f64Portfolio return within this sector for the period.
benchmark_return: f64Benchmark return within this sector for the period.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sector
impl RefUnwindSafe for Sector
impl Send for Sector
impl Sync for Sector
impl Unpin for Sector
impl UnsafeUnpin for Sector
impl UnwindSafe for Sector
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