Trait ToArenaArray

Source
pub trait ToArenaArray<T> {
    // Required method
    fn to_arena_array(self, arena: &Arena) -> Result<Array<T>, UploadError>;
}
Expand description

Converts standard collections (Vec or slice) into an arena–allocated Array.

(Note: For a borrowed slice, T must implement Clone so that the items can be copied.)

Required Methods§

Implementations on Foreign Types§

Source§

impl<T> ToArenaArray<T> for Vec<T>

Source§

impl<T: Clone> ToArenaArray<T> for &[T]

Implementors§