Documentation for method is-setting assembled from the following pages:

Class: Backtrace::Frame §

From Backtrace::Frame

(Backtrace::Frame) method is-setting §

Defined as:

method is-setting(Backtrace::Frame:D: --> Bool:D)

Returns True if the frame is part of a setting.

my $bt = Backtrace.new;
my $btf = $bt[0];
say $btf.is-setting# OUTPUT: «True␤»