Fix with_string_to_value() after param refactor
This commit is contained in:
parent
17f3c6cc6c
commit
329da782b5
|
@ -269,7 +269,7 @@ impl FloatParam {
|
||||||
/// Use a custom conversion function to convert from a string to a plain, unnormalized
|
/// Use a custom conversion function to convert from a string to a plain, unnormalized
|
||||||
/// value. If the string cannot be parsed, then this should return a `None`. If this
|
/// value. If the string cannot be parsed, then this should return a `None`. If this
|
||||||
/// happens while the parameter is being updated then the update will be canceled.
|
/// happens while the parameter is being updated then the update will be canceled.
|
||||||
pub fn with_string_to_value<F>(
|
pub fn with_string_to_value(
|
||||||
mut self,
|
mut self,
|
||||||
callback: Arc<dyn Fn(&str) -> Option<f32> + Send + Sync>,
|
callback: Arc<dyn Fn(&str) -> Option<f32> + Send + Sync>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
|
|
|
@ -239,7 +239,7 @@ impl IntParam {
|
||||||
/// Use a custom conversion function to convert from a string to a plain, unnormalized
|
/// Use a custom conversion function to convert from a string to a plain, unnormalized
|
||||||
/// value. If the string cannot be parsed, then this should return a `None`. If this
|
/// value. If the string cannot be parsed, then this should return a `None`. If this
|
||||||
/// happens while the parameter is being updated then the update will be canceled.
|
/// happens while the parameter is being updated then the update will be canceled.
|
||||||
pub fn with_string_to_value<F>(
|
pub fn with_string_to_value(
|
||||||
mut self,
|
mut self,
|
||||||
callback: Arc<dyn Fn(&str) -> Option<i32> + Send + Sync>,
|
callback: Arc<dyn Fn(&str) -> Option<i32> + Send + Sync>,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
|
|
Loading…
Reference in a new issue