[−][src]Struct bet::BeTree
Implementations
impl<Op, Atom> BeTree<Op, Atom> where
Op: Debug + Clone + PartialEq + Default,
Atom: Debug + Clone,
[src]
Op: Debug + Clone + PartialEq + Default,
Atom: Debug + Clone,
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]
&self,
eval_atom: EvalAtom,
eval_op: EvalOp
) -> Option<R> where
R: Debug,
EvalAtom: Fn(&Atom) -> R,
EvalOp: Fn(&Op, R, R) -> R,
Trait Implementations
impl<Op: Clone, Atom: Clone> Clone for BeTree<Op, Atom> where
Op: Debug + Clone + PartialEq + Default,
Atom: Debug + Clone,
[src]
Op: Debug + Clone + PartialEq + Default,
Atom: Debug + Clone,
impl<Op: Debug, Atom: Debug> Debug for BeTree<Op, Atom> where
Op: Debug + Clone + PartialEq + Default,
Atom: Debug + Clone,
[src]
Op: Debug + Clone + PartialEq + Default,
Atom: Debug + Clone,
Auto Trait Implementations
impl<Op, Atom> RefUnwindSafe for BeTree<Op, Atom> where
Atom: RefUnwindSafe,
Op: RefUnwindSafe,
Atom: RefUnwindSafe,
Op: RefUnwindSafe,
impl<Op, Atom> Send for BeTree<Op, Atom> where
Atom: Send,
Op: Send,
Atom: Send,
Op: Send,
impl<Op, Atom> Sync for BeTree<Op, Atom> where
Atom: Sync,
Op: Sync,
Atom: Sync,
Op: Sync,
impl<Op, Atom> Unpin for BeTree<Op, Atom> where
Atom: Unpin,
Op: Unpin,
Atom: Unpin,
Op: Unpin,
impl<Op, Atom> UnwindSafe for BeTree<Op, Atom> where
Atom: UnwindSafe,
Op: UnwindSafe,
Atom: UnwindSafe,
Op: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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>,