Struct wgpu::naga::valid::ExpressionInfo
source · pub struct ExpressionInfo {
pub uniformity: Uniformity,
pub ref_count: usize,
pub ty: TypeResolution,
/* private fields */
}
Available on
wgpu_core
or naga
only.Expand description
Information about an expression in a function body.
Fields§
§uniformity: Uniformity
Whether this expression is uniform, and why.
If this expression’s value is not uniform, this is the handle
of the expression from which this one’s non-uniformity
originates. Otherwise, this is None
.
ref_count: usize
The number of statements and other expressions using this expression’s value.
ty: TypeResolution
The type of this expression.
Trait Implementations§
source§impl Clone for ExpressionInfo
impl Clone for ExpressionInfo
source§fn clone(&self) -> ExpressionInfo
fn clone(&self) -> ExpressionInfo
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 ExpressionInfo
impl Debug for ExpressionInfo
source§impl<'de> Deserialize<'de> for ExpressionInfo
impl<'de> Deserialize<'de> for ExpressionInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ExpressionInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ExpressionInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ExpressionInfo
impl Serialize for ExpressionInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ExpressionInfo
impl RefUnwindSafe for ExpressionInfo
impl Send for ExpressionInfo
impl Sync for ExpressionInfo
impl Unpin for ExpressionInfo
impl UnwindSafe for ExpressionInfo
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