pub struct CallChangeCallbackFn<'tcx> {
f: Box<dyn Fn(CallInfo<'tcx, '_>) -> CallChanges<'tcx> + 'tcx>,
}
Fields§
§f: Box<dyn Fn(CallInfo<'tcx, '_>) -> CallChanges<'tcx> + 'tcx>
Implementations§
Source§impl<'tcx> CallChangeCallbackFn<'tcx>
impl<'tcx> CallChangeCallbackFn<'tcx>
pub fn new(f: impl Fn(CallInfo<'tcx, '_>) -> CallChanges<'tcx> + 'tcx) -> Self
Trait Implementations§
Source§impl<'tcx> CallChangeCallback<'tcx> for CallChangeCallbackFn<'tcx>
impl<'tcx> CallChangeCallback<'tcx> for CallChangeCallbackFn<'tcx>
fn on_inline(&self, info: CallInfo<'tcx, '_>) -> CallChanges<'tcx>
fn on_inline_miss( &self, _resolution: Instance<'tcx>, _param_env: TypingEnv<'tcx>, _loc: Location, _under_analysis: Instance<'tcx>, _reason: InlineMissReason, _call_span: Span, )
Auto Trait Implementations§
impl<'tcx> Freeze for CallChangeCallbackFn<'tcx>
impl<'tcx> !RefUnwindSafe for CallChangeCallbackFn<'tcx>
impl<'tcx> !Send for CallChangeCallbackFn<'tcx>
impl<'tcx> !Sync for CallChangeCallbackFn<'tcx>
impl<'tcx> Unpin for CallChangeCallbackFn<'tcx>
impl<'tcx> !UnwindSafe for CallChangeCallbackFn<'tcx>
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> 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