[−][src]Struct gll_pg_core::GSSState
Fields
graph: Graph<GSSNode<L>, SPPFNodeIndex, Directed>
nodes: BTreeMap<GSSNode<L>, NodeIndex>
sppf_nodes: Vec<SPPFNode<L, L::Symbol>>
initial_node_index: NodeIndex
visited: Vec<BTreeSet<(L, NodeIndex, SPPFNodeIndex)>>
todo: Vec<(L, NodeIndex, usize, SPPFNodeIndex)>
pop: BTreeSet<(NodeIndex, SPPFNodeIndex)>
current_position: usize
current_node_index: NodeIndex
current_sppf_node: usize
Methods
impl<L: Ord + Clone + GrammarLabel> GSSState<L>
[src]
pub fn add(&mut self, l: L, u: NodeIndex, i: usize, w: SPPFNodeIndex)
[src]
pub fn pop(&mut self, u: NodeIndex, i: usize, z: SPPFNodeIndex)
[src]
pub fn create(
&mut self,
l: L,
u: NodeIndex,
j: usize,
w: SPPFNodeIndex
) -> NodeIndex
[src]
&mut self,
l: L,
u: NodeIndex,
j: usize,
w: SPPFNodeIndex
) -> NodeIndex
pub fn get_node_t(&mut self, x: L::Symbol, i: usize) -> SPPFNodeIndex
[src]
pub fn get_node_p(
&mut self,
l: L,
w: SPPFNodeIndex,
z: SPPFNodeIndex
) -> SPPFNodeIndex
[src]
&mut self,
l: L,
w: SPPFNodeIndex,
z: SPPFNodeIndex
) -> SPPFNodeIndex
pub fn collect_symbols(&self, node: SPPFNodeIndex) -> Vec<SPPFNodeIndex>
[src]
Trait Implementations
Auto Trait Implementations
impl<L> Send for GSSState<L> where
L: Send,
<L as GrammarLabel>::Symbol: Send,
L: Send,
<L as GrammarLabel>::Symbol: Send,
impl<L> Sync for GSSState<L> where
L: Sync,
<L as GrammarLabel>::Symbol: Sync,
L: Sync,
<L as GrammarLabel>::Symbol: Sync,
impl<L> Unpin for GSSState<L> where
L: Unpin,
<L as GrammarLabel>::Symbol: Unpin,
L: Unpin,
<L as GrammarLabel>::Symbol: Unpin,
impl<L> UnwindSafe for GSSState<L> where
L: RefUnwindSafe + UnwindSafe,
<L as GrammarLabel>::Symbol: UnwindSafe,
L: RefUnwindSafe + UnwindSafe,
<L as GrammarLabel>::Symbol: UnwindSafe,
impl<L> RefUnwindSafe for GSSState<L> where
L: RefUnwindSafe,
<L as GrammarLabel>::Symbol: RefUnwindSafe,
L: RefUnwindSafe,
<L as GrammarLabel>::Symbol: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,