pub struct UigUnit {
pub caller: NodeType,
pub caller_cons: Vec<NodeType>,
pub callee_cons_pair: HashSet<(NodeType, Vec<NodeType>)>,
}
Fields§
§caller: NodeType
§caller_cons: Vec<NodeType>
§callee_cons_pair: HashSet<(NodeType, Vec<NodeType>)>
Implementations§
source§impl UigUnit
impl UigUnit
pub fn new(caller: NodeType, caller_cons: Vec<NodeType>) -> Self
pub fn new_by_pair( caller: NodeType, caller_cons: Vec<NodeType>, callee_cons_pair: HashSet<(NodeType, Vec<NodeType>)>, ) -> Self
pub fn count_basic_units(&self, data: &mut [u32])
pub fn get_node_ty(node: NodeType) -> UigNode
pub fn generate_dot_str(&self) -> String
pub fn compare_labels(&self, tcx: TyCtxt<'_>)
pub fn print_self(&self, tcx: TyCtxt<'_>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UigUnit
impl RefUnwindSafe for UigUnit
impl Send for UigUnit
impl Sync for UigUnit
impl Unpin for UigUnit
impl UnwindSafe for UigUnit
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)