pub struct InlineContextStack { /* private fields */ }Expand description
Context-sensitive inline stack, used to detect context-specific inlining opportunities (e.g., inlining differently depending on call chain).
Implementations§
Source§impl InlineContextStack
impl InlineContextStack
Sourcepub fn pop(&mut self) -> Option<InlineContextFrame>
pub fn pop(&mut self) -> Option<InlineContextFrame>
Pop the most recent frame.
Sourcepub fn contains(&self, callee: &str) -> bool
pub fn contains(&self, callee: &str) -> bool
Returns true if callee appears anywhere in the current context.
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
Returns the context fingerprint as a concatenation of callee names.
Trait Implementations§
Source§impl Clone for InlineContextStack
impl Clone for InlineContextStack
Source§fn clone(&self) -> InlineContextStack
fn clone(&self) -> InlineContextStack
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 moreSource§impl Debug for InlineContextStack
impl Debug for InlineContextStack
Source§impl Default for InlineContextStack
impl Default for InlineContextStack
Source§fn default() -> InlineContextStack
fn default() -> InlineContextStack
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InlineContextStack
impl RefUnwindSafe for InlineContextStack
impl Send for InlineContextStack
impl Sync for InlineContextStack
impl Unpin for InlineContextStack
impl UnsafeUnpin for InlineContextStack
impl UnwindSafe for InlineContextStack
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