JuliaData / StructTypes.jl

Abstract definitions and convenience methods for describing, processing, and constructing Julia objects
https://juliadata.github.io/StructTypes.jl/stable/
MIT License
79 stars 22 forks source link

Add constructfrom! methods for certain InterfaceTypes #56

Open rapus95 opened 3 years ago

rapus95 commented 3 years ago

something along the lines of the following would be nice

StructTypes.constructfrom!(::StructTypes.DictType, target::AbstractDict, source) = merge!(target, source)
StructTypes.constructfrom!(::StructTypes.ArrayType, target, source) = append!(target, source)