Function conch_runtime::eval::assign [−][src]
pub fn assign<P: ?Sized, W, E: ?Sized>(
strict: bool,
param: &P,
assign: Option<W>,
env: &E,
cfg: TildeExpansion
) -> Assign<W::EvalResult, W::EvalFuture> where
P: ParamEval<E, EvalResult = W::EvalResult> + Display,
W: WordEval<E>,
Constructs future representing a Assign
parameter substitution evaluation.
First, param
will be evaluated and returned as is as long as the result is
non-empty, or if the result is defined-but-empty and strict = false
.
Otherwise, assign
will be evaluated using cfg
, that value assigned to
the variable in the current environment, and the value yielded.
Note: field splitting will neither be done on the parameter, nor the value to assign.