[][src]Struct prolog_parser::parser::Parser

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

Implementations

impl<'a, R: Read> Parser<'a, R>[src]

pub fn new(
    stream: &'a mut ParsingStream<R>,
    atom_tbl: TabledData<Atom>,
    flags: MachineFlags
) -> Self
[src]

pub fn line_num(&self) -> usize[src]

pub fn col_num(&self) -> usize[src]

pub fn get_atom_tbl(&self) -> TabledData<Atom>[src]

pub fn set_atom_tbl(&mut self, atom_tbl: TabledData<Atom>)[src]

pub fn devour_whitespace(&mut self) -> Result<(), ParserError>[src]

pub fn reset(&mut self)[src]

pub fn eof(&mut self) -> Result<bool, ParserError>[src]

pub fn read_term(&mut self, op_dir: CompositeOp) -> Result<Term, ParserError>[src]

pub fn read(&mut self, op_dir: CompositeOp) -> Result<Vec<Term>, ParserError>[src]

Trait Implementations

impl<'a, R: Debug + Read> Debug for Parser<'a, R>[src]

Auto Trait Implementations

impl<'a, R> !RefUnwindSafe for Parser<'a, R>

impl<'a, R> !Send for Parser<'a, R>

impl<'a, R> !Sync for Parser<'a, R>

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

impl<'a, R> !UnwindSafe for Parser<'a, R>

Blanket Implementations

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

impl<T> Az for T[src]

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

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

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

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

impl<T> OverflowingAs for T[src]

impl<T> SaturatingAs 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> WrappingAs for T[src]