rapx

Struct RapCallback

source
pub struct RapCallback {
Show 13 fields pub(crate) rcanary: bool, pub(crate) safedrop: bool, pub(crate) verify: bool, pub(crate) infer: bool, pub(crate) unsafety_isolation: usize, pub(crate) mop: bool, pub(crate) callgraph: bool, pub(crate) api_dep: bool, pub(crate) show_mir: bool, pub(crate) dataflow: usize, pub(crate) opt: bool, pub(crate) heap_item: bool, pub(crate) ssa: bool,
}

Fields§

§rcanary: bool§safedrop: bool§verify: bool§infer: bool§unsafety_isolation: usize§mop: bool§callgraph: bool§api_dep: bool§show_mir: bool§dataflow: usize§opt: bool§heap_item: bool§ssa: bool

Implementations§

source§

impl RapCallback

source

pub fn enable_rcanary(&mut self)

source

pub fn is_rcanary_enabled(&self) -> bool

source

pub fn enable_mop(&mut self)

source

pub fn is_mop_enabled(&self) -> bool

source

pub fn enable_safedrop(&mut self)

source

pub fn is_safedrop_enabled(&self) -> bool

source

pub fn enable_unsafety_isolation(&mut self, x: usize)

source

pub fn is_unsafety_isolation_enabled(&self) -> usize

source

pub fn enable_api_dep(&mut self)

source

pub fn is_api_dep_enabled(self) -> bool

source

pub fn enable_verify(&mut self)

source

pub fn is_verify_enabled(&self) -> bool

source

pub fn enable_infer(&mut self)

source

pub fn is_infer_enabled(&self) -> bool

source

pub fn enable_callgraph(&mut self)

source

pub fn is_callgraph_enabled(&self) -> bool

source

pub fn enable_show_mir(&mut self)

source

pub fn is_show_mir_enabled(&self) -> bool

source

pub fn enable_dataflow(&mut self, x: usize)

source

pub fn is_dataflow_enabled(self) -> usize

source

pub fn enable_opt(&mut self)

source

pub fn is_opt_enabled(self) -> bool

source

pub fn enable_heap_item(&mut self)

source

pub fn is_heap_item_enabled(self) -> bool

source

pub fn enable_ssa_transform(&mut self)

source

pub fn is_ssa_transform_enabled(self) -> bool

Trait Implementations§

source§

impl Callbacks for RapCallback

source§

fn config(&mut self, config: &mut Config)

Called before creating the compiler instance
source§

fn after_analysis<'tcx>( &mut self, _compiler: &Compiler, queries: &'tcx Queries<'tcx>, ) -> Compilation

Called after analysis. Return value instructs the compiler whether to continue the compilation afterwards (defaults to Compilation::Continue)
source§

fn after_crate_root_parsing<'tcx>( &mut self, _compiler: &Compiler, _queries: &'tcx Queries<'tcx>, ) -> 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_expansion<'tcx>( &mut self, _compiler: &Compiler, _queries: &'tcx Queries<'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

source§

fn clone(&self) -> RapCallback

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RapCallback

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for RapCallback

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Hash for RapCallback

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Copy for RapCallback

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.