#[repr(C)]pub struct PackageMergerList {
pub nitems: c_int,
pub item_idx: [c_int; 515],
pub probability: [c_int; 514],
pub items: [c_int; 4112],
}
Expand description
Used to store intermediate lists in the package merge algorithm
Fields§
§nitems: c_int
< number of items in the list and probability ex. 4
item_idx: [c_int; 515]
< index range for each item in items 0, 2, 5, 9, 13
probability: [c_int; 514]
< probability of each item 3, 8, 18, 46
items: [c_int; 4112]
< chain of all individual values that make up items A, B, A, B, C, A, B, C, D, C, D, D, E
Trait Implementations§
Source§impl Clone for PackageMergerList
impl Clone for PackageMergerList
Source§fn clone(&self) -> PackageMergerList
fn clone(&self) -> PackageMergerList
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for PackageMergerList
Auto Trait Implementations§
impl Freeze for PackageMergerList
impl RefUnwindSafe for PackageMergerList
impl Send for PackageMergerList
impl Sync for PackageMergerList
impl Unpin for PackageMergerList
impl UnwindSafe for PackageMergerList
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