pub struct Accelerator<T: Symbol> {
pub index: HashMap<Expr<T>, Vec<usize>>,
pub len: usize,
pub last_rule: Option<usize>,
}Expand description
Index of sub-expressions.
Fields§
§index: HashMap<Expr<T>, Vec<usize>>Index for each sub-expression.
len: usizeThe number of facts that has been indexed.
last_rule: Option<usize>The index of the last rule.
Implementations§
Source§impl<T: Symbol> Accelerator<T>
impl<T: Symbol> Accelerator<T>
Sourcepub fn new() -> Accelerator<T>
pub fn new() -> Accelerator<T>
Creates a new accelerator.
Sourcepub fn constructor() -> fn(&[Expr<T>], &[Expr<T>]) -> Accelerator<T>
pub fn constructor() -> fn(&[Expr<T>], &[Expr<T>]) -> Accelerator<T>
Returns a constructor for solve-and-reduce.
Auto Trait Implementations§
impl<T> Freeze for Accelerator<T>
impl<T> RefUnwindSafe for Accelerator<T>where
T: RefUnwindSafe,
impl<T> Send for Accelerator<T>where
T: Send,
impl<T> Sync for Accelerator<T>where
T: Sync,
impl<T> Unpin for Accelerator<T>where
T: Unpin,
impl<T> UnwindSafe for Accelerator<T>where
T: UnwindSafe,
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