WhereTraits.jl
Welcome to WhereTraits.jl
. This package exports one powerful macro @traits
with which you can extend Julia's where syntax in order to support traits definitions.
In addition, WhereTraits
comes with a standardized way how to resolve ambiguities among traits, by defining an order among the traits with @traits_order
.
Installation & Import
Install by running
using Pkg
pkg"add WhereTraits"
Then use this package by loading
using WhereTraits
which brings @traits
into your namespace, and in addition also @traits_order
for resolving ambiguities.
Manual Outline
Library Index
WhereTraits.BasicTraits.isbitstype
WhereTraits.BasicTraits.iscallable
WhereTraits.BasicTraits.isconcretetype
WhereTraits.BasicTraits.isimmutable
WhereTraits.BasicTraits.isiterable
WhereTraits.BasicTraits.ismutable
WhereTraits.BasicTraits.@overwrite_Base
WhereTraits.ExtraHelpers.@traits_show_implementation
WhereTraits.ExtraHelpers.@traits_test
WhereTraits.Syntax.@traits
WhereTraits.Syntax.@traits_order