pub struct InterResultNode<'tcx> {
pub point_to: Option<Box<InterResultNode<'tcx>>>,
pub fields: HashMap<usize, InterResultNode<'tcx>>,
pub ty: Option<Ty<'tcx>>,
pub states: States<'tcx>,
pub const_value: usize,
}Expand description
A node in the intermediate result graph.
Fields§
§point_to: Option<Box<InterResultNode<'tcx>>>§fields: HashMap<usize, InterResultNode<'tcx>>§ty: Option<Ty<'tcx>>§states: States<'tcx>§const_value: usizeImplementations§
Source§impl<'tcx> InterResultNode<'tcx>
impl<'tcx> InterResultNode<'tcx>
Sourcepub fn new_default(ty: Option<Ty<'tcx>>) -> Self
pub fn new_default(ty: Option<Ty<'tcx>>) -> Self
Create a new InterResultNode with default values.
Sourcepub fn construct_from_var_node(
chain: DominatedGraph<'tcx>,
var_id: usize,
) -> Self
pub fn construct_from_var_node( chain: DominatedGraph<'tcx>, var_id: usize, ) -> Self
Construct an InterResultNode from a VariableNode.
Sourcepub fn merge(&mut self, other: InterResultNode<'tcx>)
pub fn merge(&mut self, other: InterResultNode<'tcx>)
Merge the current node with another node.
Trait Implementations§
Source§impl<'tcx> Clone for InterResultNode<'tcx>
impl<'tcx> Clone for InterResultNode<'tcx>
Source§fn clone(&self) -> InterResultNode<'tcx>
fn clone(&self) -> InterResultNode<'tcx>
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<'tcx> Freeze for InterResultNode<'tcx>
impl<'tcx> !RefUnwindSafe for InterResultNode<'tcx>
impl<'tcx> Send for InterResultNode<'tcx>
impl<'tcx> Sync for InterResultNode<'tcx>
impl<'tcx> Unpin for InterResultNode<'tcx>
impl<'tcx> !UnwindSafe for InterResultNode<'tcx>
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