pub struct DefiniteAssignmentResult {
pub states: AssignmentStateMap,
}Expand description
Definite assignment analysis result for a specific program point.
Fields§
§states: AssignmentStateMapAssignment states for all variables at this point
Implementations§
Source§impl DefiniteAssignmentResult
impl DefiniteAssignmentResult
Sourcepub fn is_definitely_assigned(&self, var_id: NodeIndex) -> bool
pub fn is_definitely_assigned(&self, var_id: NodeIndex) -> bool
Check if a variable is definitely assigned at this point.
Sourcepub fn is_maybe_assigned(&self, var_id: NodeIndex) -> bool
pub fn is_maybe_assigned(&self, var_id: NodeIndex) -> bool
Check if a variable may be assigned at this point.
Trait Implementations§
Source§impl Clone for DefiniteAssignmentResult
impl Clone for DefiniteAssignmentResult
Source§fn clone(&self) -> DefiniteAssignmentResult
fn clone(&self) -> DefiniteAssignmentResult
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 Freeze for DefiniteAssignmentResult
impl RefUnwindSafe for DefiniteAssignmentResult
impl Send for DefiniteAssignmentResult
impl Sync for DefiniteAssignmentResult
impl Unpin for DefiniteAssignmentResult
impl UnsafeUnpin for DefiniteAssignmentResult
impl UnwindSafe for DefiniteAssignmentResult
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