pub struct Standard<T>(/* private fields */);Expand description
Typed standard arithmetic algebra (add = +, mul = *).
The type parameter T carries the scalar type, making the algebra
Alg::Scalar-centric. This is the canonical core model — HasAlgebra
provides UX sugar for automatic inference (e.g., f64 → Standard<f64>).
This is the default algebra for built-in numeric types (f32, f64,
Complex32, Complex64).
§Examples
use tenferro_algebra::{HasAlgebra, Standard};
// f64 maps to Standard<f64> algebra automatically
fn check_algebra<T: HasAlgebra<Algebra = Standard<T>>>() {}
check_algebra::<f64>();
check_algebra::<f32>();Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Standard<T>
impl<T> RefUnwindSafe for Standard<T>where
T: RefUnwindSafe,
impl<T> Send for Standard<T>where
T: Send,
impl<T> Sync for Standard<T>where
T: Sync,
impl<T> Unpin for Standard<T>where
T: Unpin,
impl<T> UnwindSafe for Standard<T>where
T: UnwindSafe,
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