[][src]Struct bitvec::vec::Splice

pub struct Splice<'a, C, T, I> where
    C: Cursor,
    T: 'a + BitStore,
    I: Iterator<Item = bool>, 
{ /* fields omitted */ }

A splicing iterator for BitVec.

This removes a segment from the vector and inserts another bitstream into its spot. Any bits from the original BitVec after the removed segment are kept, after the inserted bitstream.

Only the removed segment is available for iteration.

Type Parameters

  • I: Iterator<Item=bool>: Any bitstream. This will be used to fill the removed span.

Trait Implementations

impl<'a, C, T, I> Drop for Splice<'a, C, T, I> where
    C: Cursor,
    T: 'a + BitStore,
    I: Iterator<Item = bool>, 
[src]

impl<'a, C, T, I> Iterator for Splice<'a, C, T, I> where
    C: Cursor,
    T: 'a + BitStore,
    I: Iterator<Item = bool>, 
[src]

type Item = bool

The type of the elements being iterated over.

impl<'a, C, T, I> DoubleEndedIterator for Splice<'a, C, T, I> where
    C: Cursor,
    T: 'a + BitStore,
    I: Iterator<Item = bool>, 
[src]

impl<'a, C, T, I> ExactSizeIterator for Splice<'a, C, T, I> where
    C: Cursor,
    T: 'a + BitStore,
    I: Iterator<Item = bool>, 
[src]

impl<'a, C, T, I> FusedIterator for Splice<'a, C, T, I> where
    C: Cursor,
    T: 'a + BitStore,
    I: Iterator<Item = bool>, 
[src]

Auto Trait Implementations

impl<'a, C, T, I> !Send for Splice<'a, C, T, I>

impl<'a, C, T, I> !Sync for Splice<'a, C, T, I>

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

impl<'a, C, T, I> UnwindSafe for Splice<'a, C, T, I> where
    C: RefUnwindSafe,
    I: UnwindSafe,
    T: RefUnwindSafe

impl<'a, C, T, I> RefUnwindSafe for Splice<'a, C, T, I> where
    C: RefUnwindSafe,
    I: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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