Expand description
Conversions whose borrowed result cannot outlive an R root.
Macros§
- character_
elements 🔒 - Character elements keep the raw conversions’ NA handling:
NAreads as""for the plain forms and asNonefor the optional ones. - list_
elements 🔒 - List elements: native references (for the native types that have a raw reference conversion), and vectors of any element, nested to any depth.
Traits§
- Rooted
VecElement 👻 - An element type of a
Vecthat converts throughTryFromRoot. The element decides what the vector reads: character elements read aSTRSXP, the others read a list. OneVec<E>impl over this trait, rather than one impl per element shape, keeps a nestedVec<Vec<..>>from sending type inference into unbounded recursion when the element type is not yet known. - TryFrom
Root - Convert an R value while retaining its root’s lifetime in the result.
Functions§
- rooted_
list 🔒 - Each element gets its own root before conversion or the next Elt callback. Merely rooting an ALTREP list does not retain transient Elt results.