#[non_exhaustive]#[repr(u8)]pub enum ElixirCallTarget {
Show 29 variants
Other = 0,
If = 1,
Unless = 2,
For = 3,
While = 4,
Case = 5,
Cond = 6,
With = 7,
Try = 8,
Receive = 9,
Throw = 10,
Raise = 11,
Reraise = 12,
Exit = 13,
Def = 14,
Defp = 15,
Defmacro = 16,
Defmacrop = 17,
Defmodule = 18,
Defprotocol = 19,
Defimpl = 20,
Defstruct = 21,
Defguard = 22,
Defguardp = 23,
Quote = 24,
Alias = 25,
Import = 26,
Require = 27,
Use = 28,
}Expand description
What a call’s target identifier spells, for every word some
consumer tells apart — the raw identity, not a policy reading (#1697).
The control-flow rows (Branch, Switch, Loop, Exit) and
Member gate on it directly, FuncOpener / Container through the
crate’s elixir_declaration projection, and cyclomatic, cognitive,
ABC, NPM and NPA branch on it; one call is asked by all of them
while the walk visits it, and elixir_call_target answers from the
walk’s word slot after the first. Other is every other target — a
user function, a remote call, a computed callee, invalid UTF-8 —
cached like any answer.
#[repr(u8)] because the slot stores the discriminant; the
conversion back is total, reading anything past the table as
Other.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Other = 0
Any target that is none of the words below.
If = 1
if.
Unless = 2
unless.
For = 3
for.
While = 4
while.
Case = 5
case.
Cond = 6
cond.
With = 7
with.
Try = 8
try.
Receive = 9
receive.
Throw = 10
throw.
Raise = 11
raise.
Reraise = 12
reraise.
Exit = 13
exit.
Def = 14
def.
Defp = 15
defp.
Defmacro = 16
defmacro.
Defmacrop = 17
defmacrop.
Defmodule = 18
defmodule.
Defprotocol = 19
defprotocol.
Defimpl = 20
defimpl.
Defstruct = 21
defstruct.
Defguard = 22
defguard.
Defguardp = 23
defguardp.
Quote = 24
quote.
Alias = 25
alias.
Import = 26
import.
Require = 27
require.
Use = 28
use.
Implementations§
Source§impl ElixirCallTarget
impl ElixirCallTarget
Trait Implementations§
Source§impl Clone for ElixirCallTarget
impl Clone for ElixirCallTarget
impl Copy for ElixirCallTarget
Source§impl Debug for ElixirCallTarget
impl Debug for ElixirCallTarget
impl Eq for ElixirCallTarget
Source§impl PartialEq for ElixirCallTarget
impl PartialEq for ElixirCallTarget
impl StructuralPartialEq for ElixirCallTarget
Auto Trait Implementations§
impl Forget for ElixirCallTarget
impl Freeze for ElixirCallTarget
impl RefUnwindSafe for ElixirCallTarget
impl Send for ElixirCallTarget
impl Sync for ElixirCallTarget
impl Unpin for ElixirCallTarget
impl UnsafeUnpin for ElixirCallTarget
impl UnwindSafe for ElixirCallTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.