pub struct Fuel { /* private fields */ }Expand description
What a pass has left.
A pass asks Fuel::take immediately before each transformation and does nothing when the
answer is no. A pass that asks after transforming, or that transforms without asking, is
what the fuel test in crate::pipeline exists to catch.
Implementations§
Source§impl Fuel
impl Fuel
Sourcepub const fn unlimited() -> Self
pub const fn unlimited() -> Self
Fuel that never runs out, which is what every pass gets unless -fpass-fuel says
otherwise.
Trait Implementations§
impl Copy for Fuel
impl Eq for Fuel
impl StructuralPartialEq for Fuel
Auto Trait Implementations§
impl Freeze for Fuel
impl RefUnwindSafe for Fuel
impl Send for Fuel
impl Sync for Fuel
impl Unpin for Fuel
impl UnsafeUnpin for Fuel
impl UnwindSafe for Fuel
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