Struct Splice

struct Splice<'a, I: Iterator + 'a, A: Allocator + 'a = crate::alloc::Global> { ... }

A splicing iterator for Vec.

This struct is created by [Vec::splice()]. See its documentation for more.

Example

let mut v = vec![0, 1, 2];
let new = [7, 8];
let iter: std::vec::Splice<'_, _> = v.splice(1.., new);

Implementations

impl<'a, I, A> Freeze for Splice<'a, I, A>

impl<'a, I, A> RefUnwindSafe for Splice<'a, I, A>

impl<'a, I, A> Send for Splice<'a, I, A>

impl<'a, I, A> Sync for Splice<'a, I, A>

impl<'a, I, A> Unpin for Splice<'a, I, A>

impl<'a, I, A> UnsafeUnpin for Splice<'a, I, A>

impl<'a, I, A> UnwindSafe for Splice<'a, I, A>

impl<'a, I: $crate::fmt::Debug + Iterator + 'a, A: $crate::fmt::Debug + Allocator + 'a> Debug for Splice<'a, I, A>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<I> IntoIterator for Splice<'a, I, A>

fn into_iter(self: Self) -> I

impl<I: Iterator, A: Allocator> DoubleEndedIterator for Splice<'_, I, A>

fn next_back(self: &mut Self) -> Option<<Self as >::Item>

impl<I: Iterator, A: Allocator> Drop for Splice<'_, I, A>

fn drop(self: &mut Self)

impl<I: Iterator, A: Allocator> ExactSizeIterator for Splice<'_, I, A>

impl<I: Iterator, A: Allocator> Iterator for Splice<'_, I, A>

fn next(self: &mut Self) -> Option<<Self as >::Item>
fn size_hint(self: &Self) -> (usize, Option<usize>)

impl<T> Any for Splice<'a, I, A>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Splice<'a, I, A>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Splice<'a, I, A>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for Splice<'a, I, A>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for Splice<'a, I, A>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Splice<'a, I, A>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Splice<'a, I, A>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>