pub enum WeightPolicy {
Honor,
Unit,
Ignore,
}Expand description
How observation weights are exposed on the prepared sample.
Variants§
Honor
Use storage weights when present; otherwise unit weights.
Unit
Always use unit weights.
Ignore
Ignore weights entirely (PreparedSample.weights is None).
Trait Implementations§
Source§impl Clone for WeightPolicy
impl Clone for WeightPolicy
Source§fn clone(&self) -> WeightPolicy
fn clone(&self) -> WeightPolicy
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 moreimpl Copy for WeightPolicy
Source§impl Debug for WeightPolicy
impl Debug for WeightPolicy
Source§impl Default for WeightPolicy
impl Default for WeightPolicy
Source§fn default() -> WeightPolicy
fn default() -> WeightPolicy
Returns the “default value” for a type. Read more
impl Eq for WeightPolicy
Source§impl Hash for WeightPolicy
impl Hash for WeightPolicy
Source§impl PartialEq for WeightPolicy
impl PartialEq for WeightPolicy
impl StructuralPartialEq for WeightPolicy
Auto Trait Implementations§
impl Freeze for WeightPolicy
impl RefUnwindSafe for WeightPolicy
impl Send for WeightPolicy
impl Sync for WeightPolicy
impl Unpin for WeightPolicy
impl UnsafeUnpin for WeightPolicy
impl UnwindSafe for WeightPolicy
Blanket Implementations§
impl<T> Allocation for T
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