In RakuAST::Doc::Block§
See primary documentation in context for method type
say "type = $block.type()";
Returns the type of the block.
In Parameter§
See primary documentation in context for method type
Returns the nominal type constraint of the parameter.
In Attribute§
See primary documentation in context for method type
method type(Attribute: --> Mu)
Returns the type constraint of the attribute.
my = TypeHouse.^attributes(:local)[0..2];for 0..2# OUTPUT: «(Positional[Int])# (Mu)# (Positional)»
In X::Does::TypeObject§
See primary documentation in context for method type
method type(X::Does::TypeObject: --> Mu)
Returns the type object into which the code tried to mix in a role.
In X::Bind::Slice§
See primary documentation in context for method type
method type(X::Bind::Slice:)
returns the type object of the thing that you tried to slice-bind, for example Array
, List
or Hash
.
In Pod::FormattingCode§
See primary documentation in context for method type
method type(--> Mu)