pub struct GeneralizedContext<'a, T: Context<'a>> { /* private fields */ }
Expand description
This struct is a wrapper to create a general fixpoint context out of an interprocedural fixpoint context.
Implementations§
source§impl<'a, T: Context<'a>> GeneralizedContext<'a, T>
impl<'a, T: Context<'a>> GeneralizedContext<'a, T>
sourcepub fn new(context: T) -> Self
pub fn new(context: T) -> Self
Create a new generalized context out of an interprocedural context object.
sourcepub fn get_context(&self) -> &T
pub fn get_context(&self) -> &T
Get the inner context object.
Trait Implementations§
source§impl<'a, T: Context<'a>> Context for GeneralizedContext<'a, T>
impl<'a, T: Context<'a>> Context for GeneralizedContext<'a, T>
source§fn merge(
&self,
val1: &Self::NodeValue,
val2: &Self::NodeValue
) -> Self::NodeValue
fn merge( &self, val1: &Self::NodeValue, val2: &Self::NodeValue ) -> Self::NodeValue
Merge two values using the merge function from the interprocedural context object.
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for GeneralizedContext<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for GeneralizedContext<'a, T>where
T: Send,
impl<'a, T> Sync for GeneralizedContext<'a, T>where
T: Sync,
impl<'a, T> Unpin for GeneralizedContext<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for GeneralizedContext<'a, T>where
T: UnwindSafe,
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