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 WhereTraitswhich brings @traits into your namespace, and in addition also @traits_order for resolving ambiguities.
Manual Outline
Library Index
WhereTraits.BasicTraits.isbitstypeWhereTraits.BasicTraits.iscallableWhereTraits.BasicTraits.isconcretetypeWhereTraits.BasicTraits.isimmutableWhereTraits.BasicTraits.isiterableWhereTraits.BasicTraits.ismutableWhereTraits.BasicTraits.@overwrite_BaseWhereTraits.ExtraHelpers.@traits_show_implementationWhereTraits.ExtraHelpers.@traits_testWhereTraits.Syntax.@traitsWhereTraits.Syntax.@traits_order