Enum naga::ConstantInner
source · pub enum ConstantInner {
Scalar {
width: Bytes,
value: ScalarValue,
},
Composite {
ty: Handle<Type>,
components: Vec<Handle<Constant>>,
},
}
Expand description
Additional information, dependent on the kind of constant.
Variants§
Implementations§
source§impl ConstantInner
impl ConstantInner
pub const fn resolve_type(&self) -> TypeResolution
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for ConstantInner
impl<'arbitrary> Arbitrary<'arbitrary> for ConstantInner
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for ConstantInner
impl Clone for ConstantInner
source§fn clone(&self) -> ConstantInner
fn clone(&self) -> ConstantInner
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 ConstantInner
impl Debug for ConstantInner
source§impl<'de> Deserialize<'de> for ConstantInner
impl<'de> Deserialize<'de> for ConstantInner
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ConstantInner> for ConstantInner
impl PartialEq<ConstantInner> for ConstantInner
source§fn eq(&self, other: &ConstantInner) -> bool
fn eq(&self, other: &ConstantInner) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConstantInner
impl Serialize for ConstantInner
impl StructuralPartialEq for ConstantInner
Auto Trait Implementations§
impl RefUnwindSafe for ConstantInner
impl Send for ConstantInner
impl Sync for ConstantInner
impl Unpin for ConstantInner
impl UnwindSafe for ConstantInner
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