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

pub struct Splice<'a, O, T, I> where
    O: BitOrder,
    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, O, T, I> DoubleEndedIterator for Splice<'a, O, T, I> where
    O: BitOrder,
    T: 'a + BitStore,
    I: Iterator<Item = bool>, 
[src]

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

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

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

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

type Item = bool

The type of the elements being iterated over.

Auto Trait Implementations

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

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

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

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

impl<'a, O, T, I> UnwindSafe for Splice<'a, O, T, I> where
    I: UnwindSafe,
    O: RefUnwindSafe,
    T: 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.