pub struct RapCallback {
pub(crate) args: RapxArgs,
}Expand description
This is the data structure to handle rapx options as a rustc callback.
Fields§
§args: RapxArgsImplementations§
Source§impl RapCallback
impl RapCallback
Trait Implementations§
Source§impl Callbacks for RapCallback
impl Callbacks for RapCallback
Source§fn after_crate_root_parsing(
&mut self,
compiler: &Compiler,
krate: &mut Crate,
) -> Compilation
fn after_crate_root_parsing( &mut self, compiler: &Compiler, krate: &mut Crate, ) -> Compilation
Called after parsing the crate root. Submodules are not yet parsed when
this callback is called. Return value instructs the compiler whether to
continue the compilation afterwards (defaults to
Compilation::Continue)Source§fn after_analysis<'tcx>(
&mut self,
_compiler: &Compiler,
tcx: TyCtxt<'tcx>,
) -> Compilation
fn after_analysis<'tcx>( &mut self, _compiler: &Compiler, tcx: TyCtxt<'tcx>, ) -> Compilation
Called after analysis. Return value instructs the compiler whether to
continue the compilation afterwards (defaults to
Compilation::Continue)§fn after_expansion<'tcx>(
&mut self,
_compiler: &Compiler,
_tcx: TyCtxt<'tcx>,
) -> Compilation
fn after_expansion<'tcx>( &mut self, _compiler: &Compiler, _tcx: TyCtxt<'tcx>, ) -> Compilation
Called after expansion. Return value instructs the compiler whether to
continue the compilation afterwards (defaults to
Compilation::Continue)Source§impl Clone for RapCallback
impl Clone for RapCallback
Source§fn clone(&self) -> RapCallback
fn clone(&self) -> RapCallback
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 moreAuto Trait Implementations§
impl Freeze for RapCallback
impl RefUnwindSafe for RapCallback
impl Send for RapCallback
impl Sync for RapCallback
impl Unpin for RapCallback
impl UnwindSafe for RapCallback
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> 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