[−][src]Struct wavefront_rs::obj::read_lexer::ReadLexer
Will read from a given BufRead
and parse entities.
Implementations
impl ReadLexer
[src]
pub fn read_to_end<R: BufRead>(
reader: &mut R,
callback: impl Fn(Entity)
) -> Result<(), Error>
[src]
reader: &mut R,
callback: impl Fn(Entity)
) -> Result<(), Error>
Will read from the given BufRead
as long as it is not EOF.
When an entity is parsed, the given callback is invoked and the entity is inserted into it as parameter.
Will return Ok(())
if successful or an Error
(if parsing failed).
pub fn read_line<R: BufRead>(reader: &mut R) -> Result<Entity, Error>
[src]
Will read from the given BufRead
until the first encountered linebreak.
Will return Ok(Entity)
if successful or an Error
(if parsing failed).
Auto Trait Implementations
impl RefUnwindSafe for ReadLexer
impl Send for ReadLexer
impl Sync for ReadLexer
impl Unpin for ReadLexer
impl UnwindSafe for ReadLexer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,