pub struct Stack {
pub nodes: Vec<SNode>,
pub heads: Vec<Head>,
/* private fields */
}Fields§
§nodes: Vec<SNode>§heads: Vec<Head>Implementations§
Source§impl Stack
impl Stack
pub fn new() -> Stack
pub fn clear(&mut self)
pub fn version_count(&self) -> usize
pub fn state(&self, v: usize) -> u16
pub fn position(&self, v: usize) -> Len
pub fn is_active(&self, v: usize) -> bool
pub fn is_halted(&self, v: usize) -> bool
pub fn is_paused(&self, v: usize) -> bool
pub fn halt(&mut self, v: usize)
pub fn dynamic_precedence(&self, v: usize) -> i32
pub fn halted_count(&self) -> usize
pub fn error_cost(&self, v: usize) -> u32
pub fn node_count_since_error(&mut self, v: usize) -> u32
pub fn push( &mut self, a: &Arena, v: usize, tree: u32, pending: bool, state: u16, )
pub fn can_merge(&self, v1: usize, v2: usize) -> bool
pub fn merge(&mut self, a: &Arena, v1: usize, v2: usize) -> bool
pub fn remove_version(&mut self, v: usize)
pub fn renumber_version(&mut self, v1: usize, v2: usize)
pub fn swap_versions(&mut self, v1: usize, v2: usize)
pub fn copy_version(&mut self, v: usize) -> usize
pub fn pause(&mut self, v: usize, lookahead: u32)
pub fn resume(&mut self, v: usize) -> u32
pub fn has_advanced_since_error(&self, a: &Arena, v: usize) -> bool
pub fn pop_count(&mut self, a: &Arena, v: usize, count: u32) -> Vec<Slice>
pub fn pop_all(&mut self, a: &Arena, v: usize) -> Vec<Slice>
pub fn pop_error(&mut self, a: &Arena, v: usize) -> Vec<u32>
pub fn record_summary(&mut self, a: &Arena, v: usize, max_depth: u32)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stack
impl RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl UnsafeUnpin for Stack
impl UnwindSafe for Stack
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more