pub enum ScalarClass {
RealF32,
RealF64,
ComplexF32,
ComplexF64,
RealF16,
RealF128,
Other,
}Expand description
Type-level scalar classification for compile-time dispatch.
This enum enables algorithms to specialize at compile time based on the scalar type’s properties.
Variants§
RealF32
Single-precision real (f32)
RealF64
Double-precision real (f64)
ComplexF32
Single-precision complex
ComplexF64
Double-precision complex
RealF16
Half-precision real (f16)
RealF128
Quad-precision real (f128)
Other
Unknown/other type
Trait Implementations§
Source§impl Clone for ScalarClass
impl Clone for ScalarClass
Source§fn clone(&self) -> ScalarClass
fn clone(&self) -> ScalarClass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalarClass
impl Debug for ScalarClass
Source§impl PartialEq for ScalarClass
impl PartialEq for ScalarClass
impl Copy for ScalarClass
impl Eq for ScalarClass
impl StructuralPartialEq for ScalarClass
Auto Trait Implementations§
impl Freeze for ScalarClass
impl RefUnwindSafe for ScalarClass
impl Send for ScalarClass
impl Sync for ScalarClass
impl Unpin for ScalarClass
impl UnwindSafe for ScalarClass
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