#[non_exhaustive]pub struct CallQuery {
pub roots: CallRoots,
pub direction: Direction,
pub depth: usize,
pub max_nodes: usize,
pub virtual_calls: bool,
pub from: Option<Query>,
pub unless: Vec<Query>,
}Expand description
A call graph query.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.roots: CallRootsWhere the walk starts.
direction: DirectionWhether to walk callers or callees.
depth: usizeLevels to expand (1 = direct callers / callees).
max_nodes: usizeStop discovering methods beyond this many (roots included).
virtual_calls: boolFollow virtual dispatch through the class hierarchy (see the module docs).
from: Option<Query>Callers only: keep just the branches that end at a method whose code matches this (the paths from such a method to a root), and stop there.
unless: Vec<Query>Leave out every method whose code matches one of these, with everything reached only through it.
Implementations§
Source§impl CallQuery
impl CallQuery
Sourcepub fn virtual_calls(self, virtual_calls: bool) -> Self
pub fn virtual_calls(self, virtual_calls: bool) -> Self
The query with virtual_calls set.
Trait Implementations§
Auto Trait Implementations§
impl Forget for CallQuery
impl Freeze for CallQuery
impl Move for CallQuery
impl RefUnwindSafe for CallQuery
impl Send for CallQuery
impl Sync for CallQuery
impl Unpin for CallQuery
impl UnsafeUnpin for CallQuery
impl UnwindSafe for CallQuery
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