pub struct DivergenceMetadata {
pub model: &'static str,
pub width_kind: &'static str,
pub width_rad: f64,
pub width_deg: f64,
pub incidence: &'static str,
pub max_attempts: u32,
pub stream_word: &'static str,
}Expand description
Run metadata of a beam divergence (Bca::divergence_metadata): the
distribution, its width and the incidence policy, so a result states the
spread it was run with.
Fields§
§model: &'static str"gaussian" or "uniform-cone".
width_kind: &'static strWhich angle width_rad is: "sigma_per_plane" (Gaussian standard
deviation of each of two orthogonal plane angles) or
"cone_half_angle" (uniform in solid angle).
width_rad: f64The width, radians.
width_deg: f64The width, degrees (the unit the input uses).
incidence: &'static strIncidence policy: "inward-conditioned", i.e. the distribution
conditioned on directions into the target by rejection sampling.
max_attempts: u32Rejection-sampling attempt bound per primary.
stream_word: &'static strWord position of the random-stream segment the draws come from.
Implementations§
Source§impl DivergenceMetadata
impl DivergenceMetadata
Sourcepub fn new(divergence: &Divergence) -> Option<Self>
pub fn new(divergence: &Divergence) -> Option<Self>
Metadata of divergence; None for Divergence::None.
Trait Implementations§
Source§impl Clone for DivergenceMetadata
impl Clone for DivergenceMetadata
Source§fn clone(&self) -> DivergenceMetadata
fn clone(&self) -> DivergenceMetadata
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 DivergenceMetadata
impl Debug for DivergenceMetadata
Source§impl PartialEq for DivergenceMetadata
impl PartialEq for DivergenceMetadata
Source§impl Serialize for DivergenceMetadata
impl Serialize for DivergenceMetadata
impl StructuralPartialEq for DivergenceMetadata
Auto Trait Implementations§
impl Freeze for DivergenceMetadata
impl RefUnwindSafe for DivergenceMetadata
impl Send for DivergenceMetadata
impl Sync for DivergenceMetadata
impl Unpin for DivergenceMetadata
impl UnsafeUnpin for DivergenceMetadata
impl UnwindSafe for DivergenceMetadata
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,
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