pub struct SqrtIntelligence { /* private fields */ }Expand description
Square Root Function Intelligence
Dedicated intelligence system for the square root function with complete mathematical properties.
Implementations§
Source§impl SqrtIntelligence
impl SqrtIntelligence
Sourcepub fn new() -> Self
pub fn new() -> Self
Create new square root intelligence system
§Examples
use mathhook_core::functions::elementary::sqrt::SqrtIntelligence;
let intelligence = SqrtIntelligence::new();
assert!(intelligence.has_function("sqrt"));Sourcepub fn get_properties(&self) -> HashMap<String, FunctionProperties>
pub fn get_properties(&self) -> HashMap<String, FunctionProperties>
Get square root function properties
§Examples
use mathhook_core::functions::elementary::sqrt::SqrtIntelligence;
let intelligence = SqrtIntelligence::new();
let props = intelligence.get_properties();
assert!(props.contains_key("sqrt"));Sourcepub fn has_function(&self, name: &str) -> bool
pub fn has_function(&self, name: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SqrtIntelligence
impl !RefUnwindSafe for SqrtIntelligence
impl Send for SqrtIntelligence
impl Sync for SqrtIntelligence
impl Unpin for SqrtIntelligence
impl !UnwindSafe for SqrtIntelligence
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