pub struct CtfeConfig {
pub fuel: u64,
pub max_depth: u32,
pub replace_calls: bool,
pub cross_boundary_propagation: bool,
}Expand description
Configuration for the CTFE pass.
Fields§
§fuel: u64Fuel per function evaluation.
max_depth: u32Maximum call-stack depth.
replace_calls: boolWhether to replace call sites with evaluated constants.
cross_boundary_propagation: boolWhether to propagate constants across module boundaries.
Trait Implementations§
Source§impl Clone for CtfeConfig
impl Clone for CtfeConfig
Source§fn clone(&self) -> CtfeConfig
fn clone(&self) -> CtfeConfig
Returns a duplicate 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 CtfeConfig
impl Debug for CtfeConfig
Auto Trait Implementations§
impl Freeze for CtfeConfig
impl RefUnwindSafe for CtfeConfig
impl Send for CtfeConfig
impl Sync for CtfeConfig
impl Unpin for CtfeConfig
impl UnsafeUnpin for CtfeConfig
impl UnwindSafe for CtfeConfig
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