derive(Clone,Default,Debug) for Photon

This commit is contained in:
Matthew Gordon 2020-09-04 22:00:39 -04:00
parent bc69ca04a8
commit 93e76fc5ea
1 changed files with 1 additions and 0 deletions

View File

@ -1,4 +1,5 @@
/// A quantum of light with a given wavelength and intensity /// A quantum of light with a given wavelength and intensity
#[derive(Clone, Default, Debug)]
pub struct Photon { pub struct Photon {
/// The wavelength in nanometres /// The wavelength in nanometres
pub wavelength: f64, pub wavelength: f64,