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
Scalar
Composite
Implementations
sourceimpl ConstantInner
impl ConstantInner
pub const fn resolve_type(&self) -> TypeResolution
Trait Implementations
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for ConstantInner
impl<'arbitrary> Arbitrary<'arbitrary> for ConstantInner
sourcefn 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 more
sourcefn 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 more
sourceimpl Clone for ConstantInner
impl Clone for ConstantInner
sourcefn clone(&self) -> ConstantInner
fn clone(&self) -> ConstantInner
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConstantInner
impl Debug for ConstantInner
sourceimpl<'de> Deserialize<'de> for ConstantInner
impl<'de> Deserialize<'de> for ConstantInner
sourcefn 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
sourceimpl PartialEq<ConstantInner> for ConstantInner
impl PartialEq<ConstantInner> for ConstantInner
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ConstantInner) -> bool
fn ne(&self, other: &ConstantInner) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more