pub enum SpecConstValue {
Int(i64),
Uint(u64),
Float(f64),
Bool(bool),
}Expand description
A typed specialization constant (analogous to Vulkan spec constants).
Variants§
Int(i64)
Integer constant.
Uint(u64)
Unsigned integer constant.
Float(f64)
Floating-point constant.
Bool(bool)
Boolean constant.
Implementations§
Trait Implementations§
Source§impl Clone for SpecConstValue
impl Clone for SpecConstValue
Source§fn clone(&self) -> SpecConstValue
fn clone(&self) -> SpecConstValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpecConstValue
impl Debug for SpecConstValue
Source§impl PartialEq for SpecConstValue
impl PartialEq for SpecConstValue
Source§fn eq(&self, other: &SpecConstValue) -> bool
fn eq(&self, other: &SpecConstValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpecConstValue
Auto Trait Implementations§
impl Freeze for SpecConstValue
impl RefUnwindSafe for SpecConstValue
impl Send for SpecConstValue
impl Sync for SpecConstValue
impl Unpin for SpecConstValue
impl UnsafeUnpin for SpecConstValue
impl UnwindSafe for SpecConstValue
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more