Struct small_vec2::Splice[][src]

pub struct Splice<'a, I: Iterator + 'a, const N: usize> { /* fields omitted */ }

A splicing iterator for SmallVec.

This struct is created by splice. See its documentation for more.

Example

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

Implementations

impl<'a, I: Iterator + 'a, const N: usize> Splice<'a, I, N>[src]

pub fn new(drain: Drain<'a, I::Item, N>, replace_with: I) -> Self[src]

Trait Implementations

impl<'a, I: Debug + Iterator + 'a, const N: usize> Debug for Splice<'a, I, N> where
    I::Item: Debug
[src]

impl<I: Iterator, const N: usize> DoubleEndedIterator for Splice<'_, I, N>[src]

impl<I: Iterator, const N: usize> Drop for Splice<'_, I, N>[src]

impl<I: Iterator, const N: usize> ExactSizeIterator for Splice<'_, I, N>[src]

impl<I: Iterator, const N: usize> Iterator for Splice<'_, I, N>[src]

type Item = I::Item

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, I, const N: usize> RefUnwindSafe for Splice<'a, I, N> where
    I: RefUnwindSafe,
    <I as Iterator>::Item: RefUnwindSafe

impl<'a, I, const N: usize> Send for Splice<'a, I, N> where
    I: Send,
    <I as Iterator>::Item: Send

impl<'a, I, const N: usize> Sync for Splice<'a, I, N> where
    I: Sync,
    <I as Iterator>::Item: Sync

impl<'a, I, const N: usize> Unpin for Splice<'a, I, N> where
    I: Unpin

impl<'a, I, const N: usize> UnwindSafe for Splice<'a, I, N> where
    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.