Function conch_runtime::eval::remove_largest_prefix[][src]

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

Constructs future representing a RemoveLargestPrefix parameter substitution evaluation.

First, param, then pat will be evaluated as a pattern. The largest 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.