enum NumericType {
    Scalar(Scalar),
    Vector {
        size: VectorSize,
        scalar: Scalar,
    },
    Matrix {
        columns: VectorSize,
        rows: VectorSize,
        scalar: Scalar,
    },
}Expand description
A numeric type, for use in LocalType.
Variants§
Implementations§
Source§impl NumericType
 
impl NumericType
const fn from_inner(inner: &TypeInner) -> Option<Self>
const fn scalar(self) -> Scalar
const fn with_scalar(self, scalar: Scalar) -> Self
Trait Implementations§
Source§impl Clone for NumericType
 
impl Clone for NumericType
Source§fn clone(&self) -> NumericType
 
fn clone(&self) -> NumericType
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 NumericType
 
impl Debug for NumericType
Source§impl Hash for NumericType
 
impl Hash for NumericType
Source§impl PartialEq for NumericType
 
impl PartialEq for NumericType
impl Copy for NumericType
impl Eq for NumericType
impl StructuralPartialEq for NumericType
Auto Trait Implementations§
impl Freeze for NumericType
impl RefUnwindSafe for NumericType
impl Send for NumericType
impl Sync for NumericType
impl Unpin for NumericType
impl UnwindSafe for NumericType
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<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.