pub struct UniversalFunctionRegistry { /* private fields */ }Expand description
Universal Function Intelligence Registry
Single source of truth for ALL function intelligence in MathHook. Provides O(1) property lookup for maximum performance.
Implementations§
Source§impl UniversalFunctionRegistry
impl UniversalFunctionRegistry
Sourcepub fn new() -> Self
pub fn new() -> Self
Create new universal function registry
Initializes with all built-in mathematical functions and their properties.
Sourcepub fn get_properties(&self, name: &str) -> Option<&FunctionProperties>
pub fn get_properties(&self, name: &str) -> Option<&FunctionProperties>
Get function properties
Sourcepub fn has_intelligence(&self, name: &str) -> bool
pub fn has_intelligence(&self, name: &str) -> bool
Check if function has mathematical intelligence
Sourcepub fn list_all_functions(&self) -> Vec<String>
pub fn list_all_functions(&self) -> Vec<String>
Debug: List all registered functions
Sourcepub fn registry_size(&self) -> usize
pub fn registry_size(&self) -> usize
Debug: Get registry size
Sourcepub fn explain_function(&self, name: &str, args: &[Expression]) -> Vec<Step>
pub fn explain_function(&self, name: &str, args: &[Expression]) -> Vec<Step>
Get step-by-step explanation for function operation
Required for educational integration compliance
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UniversalFunctionRegistry
impl !RefUnwindSafe for UniversalFunctionRegistry
impl Send for UniversalFunctionRegistry
impl Sync for UniversalFunctionRegistry
impl Unpin for UniversalFunctionRegistry
impl !UnwindSafe for UniversalFunctionRegistry
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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