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: UniformityWhether 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: usizeThe number of direct references to this expression in statements and other expressions.
This is a local reference count only, it may be non-zero for expressions that are ultimately unused.
ty: TypeResolutionThe 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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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<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
Auto Trait Implementations§
impl Freeze for ExpressionInfo
impl RefUnwindSafe for ExpressionInfo
impl Send for ExpressionInfo
impl Sync for ExpressionInfo
impl Unpin for ExpressionInfo
impl UnsafeUnpin 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