Struct DominatedGraph

Source
pub struct DominatedGraph<'tcx> {
    pub tcx: TyCtxt<'tcx>,
    pub def_id: DefId,
    pub local_len: usize,
    pub variables: HashMap<usize, VariableNode<'tcx>>,
}

Fields§

§tcx: TyCtxt<'tcx>§def_id: DefId§local_len: usize§variables: HashMap<usize, VariableNode<'tcx>>

Implementations§

Source§

impl<'tcx> DominatedGraph<'tcx>

Source

pub fn new(tcx: TyCtxt<'tcx>, def_id: DefId) -> Self

Source

pub fn init_self_with_inter(&mut self, inter_result: InterResultNode<'tcx>)

Source

pub fn dfs_insert_inter_results( &mut self, inter_result: InterResultNode<'tcx>, local: usize, )

Source

pub fn init_arg(&mut self)

Source

pub fn generate_ptr_with_obj_node( &mut self, local_ty: Ty<'tcx>, idx: usize, ) -> usize

Source

pub fn check_ptr(&mut self, arg: usize) -> usize

Source

pub fn get_local_ty_by_place(&self, arg: usize) -> Option<Ty<'tcx>>

Source

pub fn get_obj_ty_through_chain(&self, arg: usize) -> Option<Ty<'tcx>>

Source

pub fn get_point_to_id(&self, arg: usize) -> usize

Source

pub fn is_local(&self, node_id: usize) -> bool

Source§

impl<'tcx> DominatedGraph<'tcx>

Source

pub fn generate_node_id(&self) -> usize

Source

pub fn get_field_node_id( &mut self, local: usize, field_idx: usize, ty: Option<Ty<'tcx>>, ) -> usize

Source

pub fn insert_field_node( &mut self, local: usize, field_idx: usize, ty: Option<Ty<'tcx>>, ) -> usize

Source

pub fn find_var_id_with_fields_seq( &mut self, local: usize, fields: Vec<usize>, ) -> usize

Source

pub fn point(&mut self, lv: usize, rv: usize)

Source

pub fn get_var_nod_id(&self, local_id: usize) -> usize

Source

pub fn get_map_idx_node(&self, local_id: usize) -> &VariableNode<'tcx>

Source

pub fn get_var_node(&self, local_id: usize) -> Option<&VariableNode<'tcx>>

Source

pub fn get_var_node_mut( &mut self, local_id: usize, ) -> Option<&mut VariableNode<'tcx>>

Source

pub fn merge(&mut self, lv: usize, rv: usize)

Source

pub fn copy_node(&mut self, lv: usize, rv: usize)

Source

pub fn break_node_connection(&mut self, lv: usize, rv: usize)

Source

pub fn insert_node( &mut self, dv: usize, ty: Option<Ty<'tcx>>, parent_id: usize, child_id: Option<usize>, state: States, )

Source

pub fn delete_node(&mut self, idx: usize)

Source

pub fn set_drop(&mut self, idx: usize) -> bool

Source

pub fn update_value(&mut self, arg: usize, value: usize)

Source

pub fn print_graph(&self)

Trait Implementations§

Source§

impl<'tcx> Clone for DominatedGraph<'tcx>

Source§

fn clone(&self) -> DominatedGraph<'tcx>

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<'tcx> Freeze for DominatedGraph<'tcx>

§

impl<'tcx> !RefUnwindSafe for DominatedGraph<'tcx>

§

impl<'tcx> !Send for DominatedGraph<'tcx>

§

impl<'tcx> !Sync for DominatedGraph<'tcx>

§

impl<'tcx> Unpin for DominatedGraph<'tcx>

§

impl<'tcx> !UnwindSafe for DominatedGraph<'tcx>

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.