Closed Razican closed 5 years ago
Now that both XISFHeader and XISFData implement the Default trait, their initialization can be simplified a lot, since empty strings, 0s and empty vectors are the default values for those attributes.
XISFHeader
XISFData
Default
0
Didn't know it could be done that way. Much cleaner! :)
Now that both
XISFHeader
andXISFData
implement theDefault
trait, their initialization can be simplified a lot, since empty strings,0
s and empty vectors are the default values for those attributes.