pub struct FunctionInlinerRewriter<'db> { /* private fields */ }
Expand description
A rewriter that inlines functions annotated with #[inline(always)].
Implementations§
source§impl<'db> FunctionInlinerRewriter<'db>
impl<'db> FunctionInlinerRewriter<'db>
sourcepub fn inline_function(
&mut self,
function_id: ConcreteFunctionWithBodyId,
call_stmt: &StatementCall,
) -> Maybe<()>
pub fn inline_function( &mut self, function_id: ConcreteFunctionWithBodyId, call_stmt: &StatementCall, ) -> Maybe<()>
Inlines the given function call.
Auto Trait Implementations§
impl<'db> Freeze for FunctionInlinerRewriter<'db>
impl<'db> !RefUnwindSafe for FunctionInlinerRewriter<'db>
impl<'db> !Send for FunctionInlinerRewriter<'db>
impl<'db> !Sync for FunctionInlinerRewriter<'db>
impl<'db> Unpin for FunctionInlinerRewriter<'db>
impl<'db> !UnwindSafe for FunctionInlinerRewriter<'db>
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> 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