pub(crate) struct ExtractionCallbacks {
pub body_types: Vec<ExportBodyKind>,
}
Expand description
Callback for extraction
Fields§
§body_types: Vec<ExportBodyKind>
Trait Implementations§
Source§impl Callbacks for ExtractionCallbacks
impl Callbacks for ExtractionCallbacks
Source§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§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
)Source§impl Clone for ExtractionCallbacks
impl Clone for ExtractionCallbacks
Source§fn clone(&self) -> ExtractionCallbacks
fn clone(&self) -> ExtractionCallbacks
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 ExtractionCallbacks
impl Debug for ExtractionCallbacks
Source§impl From<ExtractionCallbacks> for Options
impl From<ExtractionCallbacks> for Options
Source§fn from(opts: ExtractionCallbacks) -> Options
fn from(opts: ExtractionCallbacks) -> Options
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExtractionCallbacks
impl RefUnwindSafe for ExtractionCallbacks
impl Send for ExtractionCallbacks
impl Sync for ExtractionCallbacks
impl Unpin for ExtractionCallbacks
impl UnwindSafe for ExtractionCallbacks
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