Scope

Trait Scope 

Source
pub trait Scope<Q, S>
where Q: RawState,
{ // Required methods fn current_state(&self) -> &State<Q>; fn current_symbol(&self) -> &S; }
Expand description

The Scope trait establishes a common interface for all head-like objects;

Required Methods§

Source

fn current_state(&self) -> &State<Q>

returns an immutable reference to the current state

Source

fn current_symbol(&self) -> &S

Implementations on Foreign Types§

Source§

impl<Q, S> Scope<Q, S> for (State<Q>, S)
where Q: RawState,

Implementors§

Source§

impl<Q, S> Scope<Q, S> for Head<Q, S>
where Q: RawState,

Source§

impl<Q, S> Scope<Q, S> for Rule<Q, S>
where Q: RawState,