#[non_exhaustive]pub struct RdDesignParams {
pub running_variable: VariableId,
pub cutoff: f64,
pub bandwidth: f64,
}Expand description
Design parameters carried on a sharp-RD estimand.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.running_variable: VariableIdRunning (assignment) variable.
cutoff: f64Discontinuity cutoff.
bandwidth: f64Symmetric bandwidth around the cutoff.
Implementations§
Source§impl RdDesignParams
impl RdDesignParams
Sourcepub const fn new(
running_variable: VariableId,
cutoff: f64,
bandwidth: f64,
) -> Self
pub const fn new( running_variable: VariableId, cutoff: f64, bandwidth: f64, ) -> Self
Construct RD design parameters.
Trait Implementations§
Source§impl Clone for RdDesignParams
impl Clone for RdDesignParams
Source§fn clone(&self) -> RdDesignParams
fn clone(&self) -> RdDesignParams
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 RdDesignParams
Source§impl Debug for RdDesignParams
impl Debug for RdDesignParams
Source§impl PartialEq for RdDesignParams
impl PartialEq for RdDesignParams
impl StructuralPartialEq for RdDesignParams
Auto Trait Implementations§
impl Freeze for RdDesignParams
impl RefUnwindSafe for RdDesignParams
impl Send for RdDesignParams
impl Sync for RdDesignParams
impl Unpin for RdDesignParams
impl UnsafeUnpin for RdDesignParams
impl UnwindSafe for RdDesignParams
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