pub struct InliningConfig {
pub max_inline_size: usize,
pub max_inline_depth: usize,
pub inline_single_use: bool,
pub inline_trivial: bool,
pub cost_threshold: f64,
pub inline_loops: bool,
}Fields§
§max_inline_size: usizeMaximum size (in HIR nodes) for a function to be inlined
max_inline_depth: usizeMaximum depth of inlining (to prevent infinite recursion)
inline_single_use: boolWhether to inline functions called only once
inline_trivial: boolWhether to inline trivial functions (single expression)
cost_threshold: f64Cost threshold for inlining decision
inline_loops: boolWhether to inline functions with loops
Trait Implementations§
Source§impl Clone for InliningConfig
impl Clone for InliningConfig
Source§fn clone(&self) -> InliningConfig
fn clone(&self) -> InliningConfig
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 InliningConfig
impl Debug for InliningConfig
Source§impl Default for InliningConfig
impl Default for InliningConfig
Source§fn default() -> InliningConfig
fn default() -> InliningConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InliningConfig
impl RefUnwindSafe for InliningConfig
impl Send for InliningConfig
impl Sync for InliningConfig
impl Unpin for InliningConfig
impl UnsafeUnpin for InliningConfig
impl UnwindSafe for InliningConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more