pub struct OptimizationManager {
pub node_sharing: NodeSharingRegistry,
pub token_pool: TokenPool,
/* private fields */
}Expand description
Central manager for all RETE optimizations
Fields§
§node_sharing: NodeSharingRegistryNode sharing registry
token_pool: TokenPoolToken pool
Implementations§
Source§impl OptimizationManager
impl OptimizationManager
pub fn new() -> Self
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if optimizations are enabled
Sourcepub fn stats(&self) -> OptimizationStats
pub fn stats(&self) -> OptimizationStats
Get comprehensive statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptimizationManager
impl RefUnwindSafe for OptimizationManager
impl Send for OptimizationManager
impl Sync for OptimizationManager
impl Unpin for OptimizationManager
impl UnwindSafe for OptimizationManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more