Enum naga::back::spv::NumericType
source · 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>
Trait Implementations§
source§impl Clone for NumericType
impl Clone for NumericType
source§fn clone(&self) -> NumericType
fn clone(&self) -> NumericType
Returns a copy 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
source§fn eq(&self, other: &NumericType) -> bool
fn eq(&self, other: &NumericType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.