Skip to main content

Vec

Type Alias Vec 

Source
pub type Vec<T> = Vec<T>;

Aliased Type§

pub struct Vec<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T: TryClone> TryClone for Vec<T>

Available on non-nightly only.
Source§

impl<T> TursoAllocExt for Vec<T>

Available on non-nightly only.
Source§

fn new() -> Self

Source§

impl<T> TursoFromIterator<T> for Vec<T>

Available on non-nightly only.
Source§

fn try_from_iter<I>(iter: I) -> Result<Self, TryReserveError>
where I: IntoIterator<Item = T>,

Source§

fn try_extend<I>(&mut self, iter: I) -> Result<(), TryReserveError>
where I: IntoIterator<Item = T>,

Source§

impl<T> TursoTryWithCapacityExt for Vec<T>

Available on non-nightly only.
Source§

impl<T> TursoVecExt<T> for Vec<T>

Available on non-nightly only.
Source§

fn with_capacity(capacity: usize) -> Self

Source§

fn push_within_capacity(&mut self, value: T) -> Result<&mut T, T>

Appends an element and returns a reference to it if there is sufficient spare capacity, otherwise an error is returned with the element. Read more
Source§

fn try_push(&mut self, value: T) -> Result<(), TryReserveError>

Source§

impl<T, A> TursoVecInExt<T, A> for Vec<T>

Available on non-nightly only.
Source§

fn new_in(_alloc: A) -> Self

Source§

fn with_capacity_in(capacity: usize, _alloc: A) -> Self

Source§

fn try_with_capacity_in( capacity: usize, alloc: A, ) -> Result<Self, TryReserveError>