Struct naga::valid::ExpressionInfo
source · pub struct ExpressionInfo {
pub uniformity: Uniformity,
pub ref_count: usize,
pub ty: TypeResolution,
/* private fields */
}
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 moreAuto 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