[][src]Struct fbx_direct::reader::EventReader

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

A wrapper around an std::io::Read instance which provides pull-based FBX parsing.

Methods

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

pub fn new(source: R) -> Self[src]

Creates a new reader, consuming the given stream.

pub fn new_with_config(source: R, config: ParserConfig) -> Self[src]

Creates a new reader with provided configuration, consuming the given stream.

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

Pulls and returns next FBX event from the stream.

Trait Implementations

impl<R: Read> IntoIterator for EventReader<R>[src]

type Item = Result<FbxEvent, Error>

The type of the elements being iterated over.

type IntoIter = Events<R>

Which kind of iterator are we turning this into?

Important traits for Events<R>
fn into_iter(self) -> Events<R>[src]

Consumes EventReader and returns an iterator (Events) over it.

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From 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> Into for T where
    U: From<T>, 
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.