pub struct CsvRecord {
pub pos_x: f64,
pub pos_y: f64,
pub pos_z: f64,
pub dir_x: f64,
pub dir_y: f64,
pub dir_z: f64,
pub wavelength: f64,
pub power: f64,
pub weight: f64,
pub tof: f64,
pub uid: u64,
}Expand description
Photon record from CSV file.
Contains position, direction, and properties for each photon:
- Position (pos_x, pos_y, pos_z)
- Direction (dir_x, dir_y, dir_z)
- Physical properties (wavelength, power, tof)
- MC simulation properties (weight)
- UID reference (uid, encoded as u64)
Fields§
§pos_x: f64§pos_y: f64§pos_z: f64§dir_x: f64§dir_y: f64§dir_z: f64§wavelength: f64§power: f64§weight: f64§tof: f64§uid: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for CsvRecord
impl<'de> Deserialize<'de> for CsvRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CsvRecord
impl RefUnwindSafe for CsvRecord
impl Send for CsvRecord
impl Sync for CsvRecord
impl Unpin for CsvRecord
impl UnsafeUnpin for CsvRecord
impl UnwindSafe for CsvRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more