#[non_exhaustive]pub enum AllocationMethod {
Sequential {
order: Arc<[ComponentId]>,
},
Shapley {
approximation: ShapleyConfig,
},
PathBased,
}Expand description
How to allocate total change across components.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sequential
Fixed sequential order (path-dependent; interactions explicit).
Fields
§
order: Arc<[ComponentId]>Component evaluation order.
Shapley
Shapley symmetrization (exact or approximate).
Fields
§
approximation: ShapleyConfigApproximation / size-limit config.
PathBased
Path-based dynamic-programming decomposition.
Implementations§
Trait Implementations§
Source§impl Clone for AllocationMethod
impl Clone for AllocationMethod
Source§fn clone(&self) -> AllocationMethod
fn clone(&self) -> AllocationMethod
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 AllocationMethod
impl Debug for AllocationMethod
impl Eq for AllocationMethod
Source§impl Hash for AllocationMethod
impl Hash for AllocationMethod
Source§impl PartialEq for AllocationMethod
impl PartialEq for AllocationMethod
impl StructuralPartialEq for AllocationMethod
Auto Trait Implementations§
impl Freeze for AllocationMethod
impl RefUnwindSafe for AllocationMethod
impl Send for AllocationMethod
impl Sync for AllocationMethod
impl Unpin for AllocationMethod
impl UnsafeUnpin for AllocationMethod
impl UnwindSafe for AllocationMethod
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