pub struct FSharpNumericHelpers;Expand description
Build common numeric helper functions.
Implementations§
Source§impl FSharpNumericHelpers
impl FSharpNumericHelpers
Sourcepub fn clamp() -> FSharpFunction
pub fn clamp() -> FSharpFunction
clamp min max value function.
Sourcepub fn square() -> FSharpFunction
pub fn square() -> FSharpFunction
square x = x * x function.
Sourcepub fn pow_int() -> FSharpFunction
pub fn pow_int() -> FSharpFunction
pow base exp (integer exponentiation) function.
Sourcepub fn gcd() -> FSharpFunction
pub fn gcd() -> FSharpFunction
gcd function.
Auto Trait Implementations§
impl Freeze for FSharpNumericHelpers
impl RefUnwindSafe for FSharpNumericHelpers
impl Send for FSharpNumericHelpers
impl Sync for FSharpNumericHelpers
impl Unpin for FSharpNumericHelpers
impl UnsafeUnpin for FSharpNumericHelpers
impl UnwindSafe for FSharpNumericHelpers
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