Skip to main content

not_scalar

Function not_scalar 

Source
fn not_scalar<T: MatchArg>(
    len: usize,
    label: impl Fn(isize) -> Option<Cow<'static, str>>,
) -> MatchArgError
Expand description

The error of a choice value of len strings label(i) (None for NA) that is not one string: MatchArgError::IsNa when it holds an NA that matches no choice (see match_na), else MatchArgError::InvalidLength. The R helper decides the same way.