pub struct Partition {
pub classes: Vec<Vec<usize>>,
pub class_of: Vec<usize>,
pub pure: Vec<bool>,
}Expand description
The mechanical partition: every hunk assigned to a shape class.
Classes are ordered by descending member count (ties broken by first
appearance, so the ordering is deterministic); class_of[i] is the class
index of canonical hunk i. Coverage is total by construction.
Fields§
§classes: Vec<Vec<usize>>Hunk indices per class, in canonical order within each class.
class_of: Vec<usize>Canonical hunk index -> class index.
pure: Vec<bool>Per class: is the exemplar a pure substitution?
Auto Trait Implementations§
impl Freeze for Partition
impl RefUnwindSafe for Partition
impl Send for Partition
impl Sync for Partition
impl Unpin for Partition
impl UnsafeUnpin for Partition
impl UnwindSafe for Partition
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