Struct borsh::maybestd::vec::Splice1.21.0[][src]

pub struct Splice<'a, I, A = Global> where
    A: 'a + Allocator,
    I: 'a + Iterator
{ /* fields omitted */ }

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.iter().cloned());

Trait Implementations

impl<'a, I, A> Debug for Splice<'a, I, A> where
    A: 'a + Debug + Allocator,
    I: 'a + Debug + Iterator,
    <I as Iterator>::Item: Debug
[src]

impl<'_, I, A> DoubleEndedIterator for Splice<'_, I, A> where
    A: Allocator,
    I: Iterator
[src]

impl<'_, I, A> Drop for Splice<'_, I, A> where
    A: Allocator,
    I: Iterator
[src]

impl<'_, I, A> ExactSizeIterator for Splice<'_, I, A> where
    A: Allocator,
    I: Iterator
[src]

impl<'_, I, A> Iterator for Splice<'_, I, A> where
    A: Allocator,
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, I, A> RefUnwindSafe for Splice<'a, I, A> where
    A: RefUnwindSafe,
    I: RefUnwindSafe,
    <I as Iterator>::Item: RefUnwindSafe

impl<'a, I, A> Send for Splice<'a, I, A> where
    A: Send,
    I: Send,
    <I as Iterator>::Item: Send

impl<'a, I, A> Sync for Splice<'a, I, A> where
    A: Sync,
    I: Sync,
    <I as Iterator>::Item: Sync

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

impl<'a, I, A> UnwindSafe for Splice<'a, I, A> where
    A: RefUnwindSafe,
    I: UnwindSafe,
    <I as Iterator>::Item: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.