Struct gearley::item::CompletedItem [] [src]

pub struct CompletedItem<N> {
    pub dot: Dot,
    pub origin: Origin,
    pub left_node: N,
    pub right_node: Option<N>,
}

Fields

dot

The dot position.

origin

The origin location. It comes after dot, so that (origin, dot) can be compared in a single instruction on little-endian systems.

left_node

Left bocage node.

right_node

Right bocage node.

Trait Implementations

impl<L> PartialEq for CompletedItem<L>

fn eq(&self, other: &Self) -> bool

1.0.0fn ne(&self, other: &Rhs) -> bool

impl<L> Eq for CompletedItem<L>

impl<L> PartialOrd for CompletedItem<L>

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

1.0.0fn lt(&self, other: &Rhs) -> bool

1.0.0fn le(&self, other: &Rhs) -> bool

1.0.0fn gt(&self, other: &Rhs) -> bool

1.0.0fn ge(&self, other: &Rhs) -> bool

impl<L> Ord for CompletedItem<L>

fn cmp(&self, other: &Self) -> Ordering

Derived Implementations

impl<N: Debug> Debug for CompletedItem<N>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<N: Copy> Copy for CompletedItem<N>

impl<N: Clone> Clone for CompletedItem<N>

fn clone(&self) -> CompletedItem<N>

1.0.0fn clone_from(&mut self, source: &Self)