[][src]Struct vcd::Parser

pub struct Parser<R: Read> { /* fields omitted */ }

VCD parser. Wraps an io::Read and acts as an iterator of Commands.

Methods

impl<R: Read> Parser<R>[src]

Important traits for Parser<P>
pub fn new(r: R) -> Parser<R>[src]

Creates a parser wrapping an io::Read.

let buf = b"...";
let mut vcd = vcd::Parser::new(&buf[..]);

pub fn parse_header(&mut self) -> Result<Header, Error>[src]

Parses the header of a VCD file into a Header struct.

After returning, the stream has been read just past the $enddefinitions command and can be iterated to obtain the data.

Trait Implementations

impl<P: Read> Iterator for Parser<P>[src]

type Item = Result<Command, Error>

The type of the elements being iterated over.

Auto Trait Implementations

impl<R> Send for Parser<R> where
    R: Send

impl<R> Unpin for Parser<R> where
    R: Unpin

impl<R> Sync for Parser<R> where
    R: Sync

impl<R> UnwindSafe for Parser<R> where
    R: UnwindSafe

impl<R> RefUnwindSafe for Parser<R> where
    R: RefUnwindSafe

Blanket Implementations

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> From<T> for T[src]

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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