Enum naga::proc::constant_evaluator::Scalar
source · enum Scalar<const N: usize> {
AbstractFloat([f64; N]),
F32([f32; N]),
AbstractInt([i64; N]),
U32([u32; N]),
I32([i32; N]),
U64([u64; N]),
I64([i64; N]),
}
Expand description
A subset of Literal
s intended to be used for implementing numeric built-ins.
Variants§
AbstractFloat([f64; N])
Maps to Literal::AbstractFloat
F32([f32; N])
Maps to Literal::F32
AbstractInt([i64; N])
Maps to Literal::AbstractInt
U32([u32; N])
Maps to Literal::U32
I32([i32; N])
Maps to Literal::I32
U64([u64; N])
Maps to Literal::U64
I64([i64; N])
Maps to Literal::I64
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize> Freeze for Scalar<N>
impl<const N: usize> RefUnwindSafe for Scalar<N>
impl<const N: usize> Send for Scalar<N>
impl<const N: usize> Sync for Scalar<N>
impl<const N: usize> Unpin for Scalar<N>
impl<const N: usize> UnwindSafe for Scalar<N>
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