get_declared_traits()
function get_declared_traits(): array
Returns an array of all declared traits.
Parameters: none.
Returns: array
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/symbols/get_declared_traits.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how get_declared_traits is implemented in the compiler, see the internals page.