pub fn update(&mut self, parameters: &Parameters) {
		if let Value::Parameter { id, mapping } = self.value {
			if let Some(parameter) = parameters.get(id) {
				self.raw_value = self.valid_range.clamp(mapping.map(parameter.value()));
			}
		}
	}
/// Updates the [`CachedValue`] with the current values of parameters.
Updates the [`CachedValue`] with the current values of parameters.
Updates the [ ` CachedValue ` ] with the current values of parameters .
pub fn update(&mut self, parameters: &Parameters) {
		if let Value::Parameter { id, mapping } = self.value {
			if let Some(parameter) = parameters.get(id) {
				self.raw_value = self.valid_range.clamp(mapping.map(parameter.value()));
			}
		}
	}
pub fn update ( & mut self , parameters : & Parameters ) { if let Value :: Parameter { id , mapping } = self . value { if let Some ( parameter ) = parameters . get ( id ) { self . raw_value = self . valid_range . clamp ( mapping . map ( parameter . value ( ) ) ) ; } } }
Updates the [`CachedValue`] with the current values of parameters.
Updates the [ ` CachedValue ` ] with the current values of parameters .
&mut self
parameters
&Parameters