Function conch_runtime::eval::remove_smallest_prefix[][src]

pub fn remove_smallest_prefix<P: ?Sized, W, E: ?Sized>(
    param: &P,
    pat: Option<W>,
    env: &E
) -> RemoveSmallestPrefix<P::EvalResult, W::EvalFuture> where
    P: ParamEval<E>,
    W: WordEval<E>, 

Constructs future representing a RemoveSmallestPrefix parameter substitution evaluation.

First, param, then pat will be evaluated as a pattern. The smallest prefix of the parameter value which is matched by the pattern will be removed.

If no pattern is specified, the parameter value will be left unchanged.

Note: field splitting will neither be done on the parameter, nor the default word.