pub enum ScalarType {
Bool,
Sint,
Uint,
Float,
Double,
}Expand description
The scalar type of a value or constant.
Variants§
Bool
A boolean, 32 bits wide wherever it is stored (constant buffers, signatures).
Sint
A signed 32-bit integer.
Uint
An unsigned 32-bit integer.
Float
A 32-bit float.
Double
A 64-bit float.
Implementations§
Trait Implementations§
Source§impl Clone for ScalarType
impl Clone for ScalarType
impl Copy for ScalarType
Source§impl Debug for ScalarType
impl Debug for ScalarType
impl Eq for ScalarType
Source§impl Hash for ScalarType
impl Hash for ScalarType
Source§impl Ord for ScalarType
impl Ord for ScalarType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ScalarType
impl PartialEq for ScalarType
Source§impl PartialOrd for ScalarType
impl PartialOrd for ScalarType
Source§impl Serialize for ScalarType
impl Serialize for ScalarType
impl StructuralPartialEq for ScalarType
Auto Trait Implementations§
impl Freeze for ScalarType
impl RefUnwindSafe for ScalarType
impl Send for ScalarType
impl Sync for ScalarType
impl Unpin for ScalarType
impl UnsafeUnpin for ScalarType
impl UnwindSafe for ScalarType
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