pub struct ExtraSubgridParams { /* private fields */ }Expand description
Extra grid creation parameters when the limits for x1 and x2 are different.
Implementations§
Source§impl ExtraSubgridParams
impl ExtraSubgridParams
Sourcepub const fn reweight2(&self) -> bool
pub const fn reweight2(&self) -> bool
Returns whether reweighting is enabled for the x2 axis or not.
Sourcepub fn set_reweight2(&mut self, reweight2: bool)
pub fn set_reweight2(&mut self, reweight2: bool)
Sets the reweighting parameter for the x2 axis.
Sourcepub fn set_x2_bins(&mut self, x_bins: usize)
pub fn set_x2_bins(&mut self, x_bins: usize)
Sets the number of bins for the x2 axes.
Sourcepub fn set_x2_max(&mut self, x_max: f64)
pub fn set_x2_max(&mut self, x_max: f64)
Sets the upper limit of the x2 axes.
Sourcepub fn set_x2_min(&mut self, x_min: f64)
pub fn set_x2_min(&mut self, x_min: f64)
Sets the lower limit of the x2 axes.
Sourcepub fn set_x2_order(&mut self, x_order: usize)
pub fn set_x2_order(&mut self, x_order: usize)
Sets the interpolation order for the x2 axes.
Trait Implementations§
Source§impl Default for ExtraSubgridParams
impl Default for ExtraSubgridParams
Source§impl<'de> Deserialize<'de> for ExtraSubgridParams
impl<'de> Deserialize<'de> for ExtraSubgridParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&SubgridParams> for ExtraSubgridParams
impl From<&SubgridParams> for ExtraSubgridParams
Source§fn from(subgrid_params: &SubgridParams) -> Self
fn from(subgrid_params: &SubgridParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExtraSubgridParams
impl RefUnwindSafe for ExtraSubgridParams
impl Send for ExtraSubgridParams
impl Sync for ExtraSubgridParams
impl Unpin for ExtraSubgridParams
impl UnwindSafe for ExtraSubgridParams
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more