pub trait TursoSliceExt<T> {
// Required method
fn try_to_vec(&self) -> Result<Vec<T>, TryReserveError>;
}Expand description
Conversion from a slice into an allocator-aware Vec.
Named try_to_vec because the inherent [T]::to_vec would always shadow
a trait method called to_vec, leaving call sites on the global
allocator.
Required Methods§
fn try_to_vec(&self) -> Result<Vec<T>, TryReserveError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T: Clone> TursoSliceExt<T> for [T]
Available on non-nightly only.
impl<T: Clone> TursoSliceExt<T> for [T]
Available on non-
nightly only.