pub enum MathBackend {
Std,
Libm,
CfgGated,
}Expand description
Math function dispatch strategy for generated code.
Variants§
Std
Use f64::sin() method syntax. Works on std targets.
Libm
Use libm::sin(x) function syntax. Works on no_std with libm.
CfgGated
Emit cfg-gated wrapper module. Works everywhere.
Trait Implementations§
Source§impl Clone for MathBackend
impl Clone for MathBackend
impl Copy for MathBackend
Source§impl Debug for MathBackend
impl Debug for MathBackend
impl Eq for MathBackend
Source§impl PartialEq for MathBackend
impl PartialEq for MathBackend
impl StructuralPartialEq for MathBackend
Auto Trait Implementations§
impl Freeze for MathBackend
impl RefUnwindSafe for MathBackend
impl Send for MathBackend
impl Sync for MathBackend
impl Unpin for MathBackend
impl UnsafeUnpin for MathBackend
impl UnwindSafe for MathBackend
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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