[][src]Struct gf::datamodel::Parser

pub struct Parser<'a> { /* fields omitted */ }

Parser for data of a type instance.

Methods

impl<'a> Parser<'a>[src]

pub fn new(ty_instance: TyInstance<'a>) -> Result<Self, ()>[src]

Create a parser for given type instance.

pub fn ty_instance(&self) -> &TyInstance<'a>[src]

Return the type instance this parser works with.

pub fn parse<R: ReadData>(
    &self,
    reader: &mut R,
    pos: u64
) -> Result<Data<'a>, ReadDataError>
[src]

Parse data from given source.

Auto Trait Implementations

impl<'a> Send for Parser<'a>

impl<'a> Sync for Parser<'a>

impl<'a> Unpin for Parser<'a>

impl<'a> UnwindSafe for Parser<'a>

impl<'a> RefUnwindSafe for Parser<'a>

Blanket Implementations

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

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

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

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