pub fn feed_dict(self, mut dict: HashMap<Tp, R>) -> CompiledModel<(), Tq, Tc, R> {
		let dict: HashMap<Placeholder<Tp, Tc>, R> = dict
			.drain()
			.map(|(k, v)| (Placeholder::Placeholder(k), v))
			.collect();
		let expanded = self.expanded.feed_dict(&dict).drop_placeholder();
		let constraints = self
			.constraints
			.into_iter()
			.map(|cs| cs.feed_dict(&dict).drop_placeholder())
			.collect();
		CompiledModel {
			expanded,
			constraints,
			builder: self.builder,
		}
	}
/// Feed real values to fill the placeholders.
Feed real values to fill the placeholders.
Feed real values to fill the placeholders .
pub fn feed_dict(self, mut dict: HashMap<Tp, R>) -> CompiledModel<(), Tq, Tc, R> {
		let dict: HashMap<Placeholder<Tp, Tc>, R> = dict
			.drain()
			.map(|(k, v)| (Placeholder::Placeholder(k), v))
			.collect();
		let expanded = self.expanded.feed_dict(&dict).drop_placeholder();
		let constraints = self
			.constraints
			.into_iter()
			.map(|cs| cs.feed_dict(&dict).drop_placeholder())
			.collect();
		CompiledModel {
			expanded,
			constraints,
			builder: self.builder,
		}
	}
pub fn feed_dict ( self , mut dict : HashMap < Tp , R > ) -> CompiledModel < ( ) , Tq , Tc , R > { let dict : HashMap < Placeholder < Tp , Tc > , R > = dict . drain ( ) . map ( | ( k , v ) | ( Placeholder :: Placeholder ( k ) , v ) ) . collect ( ) ; let expanded = self . expanded . feed_dict ( & dict ) . drop_placeholder ( ) ; let constraints = self . constraints . into_iter ( ) . map ( | cs | cs . feed_dict ( & dict ) . drop_placeholder ( ) ) . collect ( ) ; CompiledModel { expanded , constraints , builder : self . builder , } }
Feed real values to fill the placeholders.
Feed real values to fill the placeholders .
self
dict
HashMap<Tp, R>
self
dict
HashMap<Tp, R>