holmesv3 / sicd-rs

Rust interface for SICD files
MIT License
2 stars 5 forks source link

Investigate using traits for version-less metadata #10

Open holmesv3 opened 11 months ago

holmesv3 commented 11 months ago

This is an example of how the generic SICDMeta object has to be parsed for individual fields: nitv implementation. It seems there should be some way to specify that the enum implements certain 'getters', which would remove pattern matching like this (at least externally - my first though is that the getters would be doing the pattern matching under the hood.. not the most elegant, but would hopefully make for a good access interface, which ultimately is what matter I suppose)