Struct BinData
pub struct BinData {
pub token: char,
pub number: usize,
pub kind: BinKind,
pub flag: BinFlag,
pub unbound: bool,
pub values: Vec<f64>,
}
Expand description
Struct containing all relevant bin data
Bin information is stored under a series of character identifiers.
For example:
ct 11
-8.00000E-01 -6.00000E-01 -4.00000E-01 -2.00000E-01 -5.55112E-17 2.00000E-01
4.00000E-01 6.00000E-01 8.00000E-01 1.00000E+00
will parse the cosine bins into
ⓘ
BinData {
token: 'c',
number: 11,
kind: BinKind::Total,
flag: BinFlag::UpperBound,
unbound: false,
values: [-8.00000E-01, -6.00000E-01, -4.00000E-01...],
}
A quick-reference for what the parser expects is shown in the table below.
Token | Description | Kind | Flag | Unbound | List of bin values |
---|---|---|---|---|---|
f | regions* | ✗ | ✓ | ✗ | ✓ (unless detector) |
d | flagged bins | ✗ | ✓ | ✗ | ✗ |
u | user bins | ✓ | ✓ | ✗ | ✓ (if special) |
s | segments | ✓ | ✓ | ✗ | ✓ (if segment) |
m | multiplier bins | ✓ | ✓ | ✗ | ✗ |
c | cosine bins | ✓ | ✓ | ✓ | ✓ |
e | energy bins | ✓ | ✓ | ✓ | ✓ |
t | time bins | ✓ | ✓ | ✓ | ✓ |
(*) Regions are cell, surface, or detector bins depending on tally type
Fields§
§token: char
§number: usize
§kind: BinKind
§flag: BinFlag
§unbound: bool
§values: Vec<f64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BinData
impl RefUnwindSafe for BinData
impl Send for BinData
impl Sync for BinData
impl Unpin for BinData
impl UnwindSafe for BinData
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