[][src]Struct spectrusty_formats::tap::TapChunkPulseIter

pub struct TapChunkPulseIter<R> {
    pub auto_next: bool,
    // some fields omitted
}

Implements an iterator of T-state pulse intervals over the TapChunkReader. See also: ReadEncPulseIter.

Fields

auto_next: bool

Determines if a next chunk should be processed after the previous one ends.

  • false to start iterating over pulses of the next chunk a TapChunkRead::next_chunk method should be called first. Until then the Iterator::next will return None.
  • true the next chunk will be processed automatically and a single pulse of the interval of PAUSE_PULSE_LENGTH T-states is emitted before lead pulses of the next chunk.

Implementations

impl<R> TapChunkPulseIter<R>[src]

pub fn into_inner(self) -> ReadEncPulseIter<TapChunkReader<R>>

Notable traits for ReadEncPulseIter<R>

impl<R: Read> Iterator for ReadEncPulseIter<R> type Item = NonZeroU32;
[src]

Returns the wrapped iterator.

pub fn get_ref(&self) -> &ReadEncPulseIter<TapChunkReader<R>>

Notable traits for ReadEncPulseIter<R>

impl<R: Read> Iterator for ReadEncPulseIter<R> type Item = NonZeroU32;
[src]

Returns a reference to the inner iterator.

pub fn get_mut(&mut self) -> &mut ReadEncPulseIter<TapChunkReader<R>>

Notable traits for ReadEncPulseIter<R>

impl<R: Read> Iterator for ReadEncPulseIter<R> type Item = NonZeroU32;
[src]

Returns a mutable reference to the inner iterator.

impl<R> TapChunkPulseIter<R> where
    R: Read + Seek
[src]

pub fn is_done(&self) -> bool[src]

Returns true if there are no more pulses to emit or there was an error while reading bytes.

If TapChunkPulseIter::auto_next is false returns true after processing each chunk. Otherwise returns true after all chunks have been processed.

Trait Implementations

impl<R> AsMut<TapChunkReader<R>> for TapChunkPulseIter<R>[src]

impl<R> AsRef<TapChunkReader<R>> for TapChunkPulseIter<R>[src]

impl<R: Debug> Debug for TapChunkPulseIter<R>[src]

impl<R: Read + Seek> From<ReadEncPulseIter<TapChunkReader<R>>> for TapChunkPulseIter<R>[src]

impl<R: Read + Seek> From<TapChunkReader<R>> for TapChunkPulseIter<R>[src]

impl<R: Read + Seek> Iterator for TapChunkPulseIter<R>[src]

type Item = NonZeroU32

The type of the elements being iterated over.

impl<R: Read + Seek> TapChunkRead for TapChunkPulseIter<R>[src]

pub fn rewind(&mut self)[src]

Invokes underlying TapChunkReader::rewind and resets the internal pulse iterator. Returns the result from TapChunkReader::rewind.

pub fn next_chunk(&mut self) -> Result<Option<u16>>[src]

Invokes underlying TapChunkReader::next_chunk and resets the internal pulse iterator. Returns the result from TapChunkReader::next_chunk.

pub fn skip_chunks(&mut self, skip: u32) -> Result<Option<u16>>[src]

Invokes underlying TapChunkReader::skip_chunks and resets the internal pulse iterator. Returns the result from TapChunkReader::skip_chunks.

Auto Trait Implementations

impl<R> !RefUnwindSafe for TapChunkPulseIter<R>[src]

impl<R> Send for TapChunkPulseIter<R> where
    R: Send
[src]

impl<R> Sync for TapChunkPulseIter<R> where
    R: Sync
[src]

impl<R> Unpin for TapChunkPulseIter<R> where
    R: Unpin
[src]

impl<R> !UnwindSafe for TapChunkPulseIter<R>[src]

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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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<S, T> IntoSample<S> for T where
    S: FromSample<T>, 
[src]

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,