pub enum ExposureMapping {
OwnTreatment,
NeighborCount,
NeighborFraction,
WeightedNeighborExposure,
Custom(Arc<str>),
}Expand description
Built-in map from the global assignment vector to unit exposure.
Variants§
OwnTreatment
Unit’s own binary treatment only.
NeighborCount
Own treatment plus count of treated incoming neighbors.
NeighborFraction
Own treatment plus fraction of treated incoming neighbors.
WeightedNeighborExposure
Own treatment plus weighted mean neighbor treatment.
Custom(Arc<str>)
Opaque custom mapping id resolved by a caller registry.
Trait Implementations§
Source§impl Clone for ExposureMapping
impl Clone for ExposureMapping
Source§fn clone(&self) -> ExposureMapping
fn clone(&self) -> ExposureMapping
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 ExposureMapping
impl Debug for ExposureMapping
Source§impl PartialEq for ExposureMapping
impl PartialEq for ExposureMapping
impl StructuralPartialEq for ExposureMapping
Auto Trait Implementations§
impl Freeze for ExposureMapping
impl RefUnwindSafe for ExposureMapping
impl Send for ExposureMapping
impl Sync for ExposureMapping
impl Unpin for ExposureMapping
impl UnsafeUnpin for ExposureMapping
impl UnwindSafe for ExposureMapping
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