pub struct StructFlatteningPass {
pub processed: u64,
pub flattened: u64,
}Expand description
A pass that flattens nested structure constructor applications.
Fields§
§processed: u64§flattened: u64Implementations§
Source§impl StructFlatteningPass
impl StructFlatteningPass
Sourcepub fn record_processed(&mut self)
pub fn record_processed(&mut self)
Record that an expression was processed.
Sourcepub fn record_flattened(&mut self)
pub fn record_flattened(&mut self)
Record that a flattening was performed.
Sourcepub fn flatten_rate(&self) -> f64
pub fn flatten_rate(&self) -> f64
Return the fraction of processed expressions that were flattened.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StructFlatteningPass
impl RefUnwindSafe for StructFlatteningPass
impl Send for StructFlatteningPass
impl Sync for StructFlatteningPass
impl Unpin for StructFlatteningPass
impl UnsafeUnpin for StructFlatteningPass
impl UnwindSafe for StructFlatteningPass
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