[][src]Struct bet::BeTree

pub struct BeTree<Op, Atom> where
    Op: Debug + Clone + PartialEq + Default,
    Atom: Debug + Clone
{ /* fields omitted */ }

Implementations

impl<Op, Atom> BeTree<Op, Atom> where
    Op: Debug + Clone + PartialEq + Default,
    Atom: Debug + Clone
[src]

pub fn new() -> Self[src]

pub fn push_atom(&mut self, atom: Atom)[src]

pub fn open_par(&mut self)[src]

pub fn close_par(&mut self)[src]

pub fn push_operator(&mut self, operator: Op)[src]

pub fn eval<EvalAtom, EvalOp, R>(
    &self,
    eval_atom: EvalAtom,
    eval_op: EvalOp
) -> Option<R> where
    R: Debug,
    EvalAtom: Fn(&Atom) -> R,
    EvalOp: Fn(&Op, R, R) -> R, 
[src]

Trait Implementations

impl<Op: Clone, Atom: Clone> Clone for BeTree<Op, Atom> where
    Op: Debug + Clone + PartialEq + Default,
    Atom: Debug + Clone
[src]

impl<Op: Debug, Atom: Debug> Debug for BeTree<Op, Atom> where
    Op: Debug + Clone + PartialEq + Default,
    Atom: Debug + Clone
[src]

Auto Trait Implementations

impl<Op, Atom> RefUnwindSafe for BeTree<Op, Atom> where
    Atom: RefUnwindSafe,
    Op: RefUnwindSafe

impl<Op, Atom> Send for BeTree<Op, Atom> where
    Atom: Send,
    Op: Send

impl<Op, Atom> Sync for BeTree<Op, Atom> where
    Atom: Sync,
    Op: Sync

impl<Op, Atom> Unpin for BeTree<Op, Atom> where
    Atom: Unpin,
    Op: Unpin

impl<Op, Atom> UnwindSafe for BeTree<Op, Atom> where
    Atom: UnwindSafe,
    Op: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.