pub struct ParsedHistribution {
pub labels: Vec<u64>,
pub table: AliasTableU64,
}Expand description
Parsed histribution: labels + weighted alias table. The
#[poly_const] setup returns this single struct so the macro
can hand the body a borrow of one cached field rather than a
tuple. Labeled by index i → outcome labels[i]; sampling
goes through table.
Fields§
§labels: Vec<u64>The outcome per index.
table: AliasTableU64The alias table sampled.
Trait Implementations§
impl PolydatSetup for ParsedHistribution
Auto Trait Implementations§
impl Freeze for ParsedHistribution
impl RefUnwindSafe for ParsedHistribution
impl Send for ParsedHistribution
impl Sync for ParsedHistribution
impl Unpin for ParsedHistribution
impl UnsafeUnpin for ParsedHistribution
impl UnwindSafe for ParsedHistribution
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