Struct rupta::pta::context_strategy::KCallSiteSensitive
source · pub struct KCallSiteSensitive { /* private fields */ }Implementations§
source§impl KCallSiteSensitive
impl KCallSiteSensitive
pub fn new(k: usize) -> Self
pub fn new_context(&mut self, callsite: &Rc<CSCallSite>) -> ContextId
Trait Implementations§
source§impl ContextStrategy for KCallSiteSensitive
impl ContextStrategy for KCallSiteSensitive
type E = BaseCallSiteS<FuncId>
fn empty_context(&self) -> Rc<Context<BaseCallSite>>
fn get_context_id(&mut self, context: &Rc<Context<BaseCallSite>>) -> ContextId
fn get_context_by_id(&self, context_id: ContextId) -> Rc<Context<BaseCallSite>>
fn get_empty_context_id(&mut self) -> ContextId
fn new_instance_call_context( &mut self, callsite: &Rc<CSCallSite>, _receiver: Option<&Rc<CSPath>> ) -> Option<ContextId>
fn new_static_call_context(&mut self, callsite: &Rc<CSCallSite>) -> ContextId
Auto Trait Implementations§
impl RefUnwindSafe for KCallSiteSensitive
impl !Send for KCallSiteSensitive
impl !Sync for KCallSiteSensitive
impl Unpin for KCallSiteSensitive
impl UnwindSafe for KCallSiteSensitive
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