Skip to content

[Rust] Get receiver type information #20005

Answered by hvitved
Fee0 asked this question in Q&A
Discussion options

You must be logged in to vote

Type information is currently not exposed in the public API, since we still haven't decided what that API should look like.

In the meantime, you can use the following:

from MethodCallExpr call
where
  call.getStaticTarget().getCanonicalPath() = "<core::str>::len"
select call

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fee0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants