pub struct AbsoluteValueIntelligence { /* private fields */ }Expand description
Absolute Value Function Intelligence
Dedicated intelligence system for the absolute value function with complete mathematical properties.
Implementations§
Source§impl AbsoluteValueIntelligence
impl AbsoluteValueIntelligence
Sourcepub fn new() -> Self
pub fn new() -> Self
Create new absolute value intelligence system
§Examples
use mathhook_core::functions::elementary::abs::AbsoluteValueIntelligence;
let intelligence = AbsoluteValueIntelligence::new();
assert!(intelligence.has_function("abs"));Sourcepub fn get_properties(&self) -> HashMap<String, FunctionProperties>
pub fn get_properties(&self) -> HashMap<String, FunctionProperties>
Get absolute value function properties
§Examples
use mathhook_core::functions::elementary::abs::AbsoluteValueIntelligence;
let intelligence = AbsoluteValueIntelligence::new();
let props = intelligence.get_properties();
assert!(props.contains_key("abs"));Sourcepub fn has_function(&self, name: &str) -> bool
pub fn has_function(&self, name: &str) -> bool
Check if function is absolute value
§Arguments
name- The function name to check
§Examples
use mathhook_core::functions::elementary::abs::AbsoluteValueIntelligence;
let intelligence = AbsoluteValueIntelligence::new();
assert!(intelligence.has_function("abs"));
assert!(!intelligence.has_function("sin"));Trait Implementations§
Auto Trait Implementations§
impl Freeze for AbsoluteValueIntelligence
impl !RefUnwindSafe for AbsoluteValueIntelligence
impl Send for AbsoluteValueIntelligence
impl Sync for AbsoluteValueIntelligence
impl Unpin for AbsoluteValueIntelligence
impl !UnwindSafe for AbsoluteValueIntelligence
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