#[doc(hidden)]pub trait RootedVecElement<'a>: Sized {
const NATIVE_BORROW: Option<NativeBorrow>;
// Required method
fn vec_from_root(root: Root<'a>) -> Result<Vec<Self>, SexpError>;
}Expand description
An element type of a Vec that converts through TryFromRoot. The
element decides what the vector reads: character elements read a STRSXP,
the others read a list. One Vec<E> impl over this trait, rather than one
impl per element shape, keeps a nested Vec<Vec<..>> from sending type
inference into unbounded recursion when the element type is not yet known.
Required Associated Constants§
Sourceconst NATIVE_BORROW: Option<NativeBorrow>
const NATIVE_BORROW: Option<NativeBorrow>
Native storage the vector borrows, for wrapper alias checks.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".