fn unchecked_expectation(ty: &Type) -> Option<String>Expand description
The R-facing expectation of a type that has no R-side check, so its conversion alone says what it accepts (#1594):
| type | <expected> |
|---|---|
AsFromStr<T> / AsFromStrVec<T> | a single string / character (the input T is parsed from) |
Either<L, R> | <L> or <R>, when both sides have one (a single integer or a single string) |
(A, B, ...) | a list of length N |
DataFrame | a data frame |
Option<T> of the above | NULL or <T> |