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).

Re-exportsยง

use super::BatchedErrors; ๐Ÿ”’
use super::SexpError; ๐Ÿ”’
use super::SexpNaError; ๐Ÿ”’
use super::TryFromSexp; ๐Ÿ”’
use crate::SEXP; ๐Ÿ”’
use crate::SEXPTYPE; ๐Ÿ”’

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.