pub struct SpecConstant {
pub ty: ScalarType,
pub constant_id: u32,
pub id: Id,
}Expand description
Represents a specialization constant
Fields§
§ty: ScalarTypeThe scalar type of the constant.
constant_id: u32The constant id assigned to the constant.
id: IdThe Id of the constant.
Trait Implementations§
Source§impl Clone for SpecConstant
impl Clone for SpecConstant
Source§fn clone(&self) -> SpecConstant
fn clone(&self) -> SpecConstant
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 SpecConstant
impl Debug for SpecConstant
impl Copy for SpecConstant
Auto Trait Implementations§
impl Freeze for SpecConstant
impl RefUnwindSafe for SpecConstant
impl Send for SpecConstant
impl Sync for SpecConstant
impl Unpin for SpecConstant
impl UnsafeUnpin for SpecConstant
impl UnwindSafe for SpecConstant
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