Skip to main content

Module str_parse

Module str_parse 

Source
Expand description

Conversions for types parsed from an R string: ParseRStr, ParsedRStr and try_from_sexp_via_str_parse!.

A string-parsed type T gets its four conversions (T, Option<T>, Vec<T>, Vec<Option<T>>) from the ParsedRStr<T> impls in this module. The container shapes reach T through the TryFromSexpElement blankets, with ParsedRStr<T> as the inner type, so they compile in any crate (#1766).

Structs§

ParsedRStr
A value of the string-parsed type T: the inner type of T’s TryFromSexpElement impl.

Traits§

ParseRStr
Parse hook for a type read from an R character vector.

Functions§

invalid 🔒
invalid <label>: <error>, the reason a parse failure gives.