pub struct PsfScanConfig {
pub depth_lo_m: f64,
pub depth_hi_m: f64,
pub landing_m: Vec<[f64; 2]>,
pub histories_per_point: u64,
pub chunk_size: u64,
pub seed: u64,
}Expand description
What to scan: the depth slab, the landing points and the statistics.
Fields§
§depth_lo_m: f64Lower depth of the slab, m.
depth_hi_m: f64Upper depth of the slab (excluded), m.
landing_m: Vec<[f64; 2]>Landing points (y, z) on the front face, m, in report order. As for
BeamSpread::landing_m they are offsets from the geometry’s entry
point (the centre of the front face of a voxel grid).
histories_per_point: u64Histories run at each point.
chunk_size: u64Histories per tally chunk (see Transport::run_beam).
seed: u64Base seed; the seed of point i is point_seed(seed, i).
Trait Implementations§
Source§impl Clone for PsfScanConfig
impl Clone for PsfScanConfig
Source§fn clone(&self) -> PsfScanConfig
fn clone(&self) -> PsfScanConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PsfScanConfig
impl Debug for PsfScanConfig
Source§impl<'de> Deserialize<'de> for PsfScanConfig
impl<'de> Deserialize<'de> for PsfScanConfig
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
Source§impl PartialEq for PsfScanConfig
impl PartialEq for PsfScanConfig
Source§impl Serialize for PsfScanConfig
impl Serialize for PsfScanConfig
impl StructuralPartialEq for PsfScanConfig
Auto Trait Implementations§
impl Freeze for PsfScanConfig
impl RefUnwindSafe for PsfScanConfig
impl Send for PsfScanConfig
impl Sync for PsfScanConfig
impl Unpin for PsfScanConfig
impl UnsafeUnpin for PsfScanConfig
impl UnwindSafe for PsfScanConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more