Trait polars_arrow::trusted_len::PushUnchecked
source · pub trait PushUnchecked<T> {
unsafe fn push_unchecked(&mut self, value: T);
unsafe fn push_unchecked_no_len_set(&mut self, value: T);
unsafe fn extend_trusted_len_unchecked<I: IntoIterator<Item = T>>(
&mut self,
iter: I
);
unsafe fn from_trusted_len_iter_unchecked<I: IntoIterator<Item = T>>(
iter: I
) -> Self;
fn extend_trusted_len<I: IntoIterator<Item = T, IntoIter = J>, J: TrustedLen>(
&mut self,
iter: I
) { ... }
fn from_trusted_len_iter<I: IntoIterator<Item = T, IntoIter = J>, J: TrustedLen>(
iter: I
) -> Self
where
Self: Sized,
{ ... }
}
Required Methods§
sourceunsafe fn push_unchecked(&mut self, value: T)
unsafe fn push_unchecked(&mut self, value: T)
Will push an item and not check if there is enough capacity
Safety
Caller must ensure the array has enough capacity to hold T
.
sourceunsafe fn push_unchecked_no_len_set(&mut self, value: T)
unsafe fn push_unchecked_no_len_set(&mut self, value: T)
Will push an item and not check if there is enough capacity nor update the array’s length
Safety
Caller must ensure the array has enough capacity to hold T
.
Caller must update the length when its done updating the vector.
sourceunsafe fn extend_trusted_len_unchecked<I: IntoIterator<Item = T>>(
&mut self,
iter: I
)
unsafe fn extend_trusted_len_unchecked<I: IntoIterator<Item = T>>(
&mut self,
iter: I
)
Safety
Caller must ensure the iterators reported length is correct
sourceunsafe fn from_trusted_len_iter_unchecked<I: IntoIterator<Item = T>>(
iter: I
) -> Self
unsafe fn from_trusted_len_iter_unchecked<I: IntoIterator<Item = T>>(
iter: I
) -> Self
Safety
Caller must ensure the iterators reported length is correct
Provided Methods§
sourcefn extend_trusted_len<I: IntoIterator<Item = T, IntoIter = J>, J: TrustedLen>(
&mut self,
iter: I
)
fn extend_trusted_len<I: IntoIterator<Item = T, IntoIter = J>, J: TrustedLen>(
&mut self,
iter: I
)
Extend the array with an iterator who’s length can be trusted