pub struct Candidate {
pub z: u8,
pub cell: [i64; 3],
pub basis: u8,
pub position: [f64; 3],
pub s: f64,
pub p: f64,
}Expand description
One lattice site found near the path.
Fields§
§z: u8Atomic number of the atom on the site.
cell: [i64; 3]Integer index (i, j, k) of the cell holding the site (the
conventional cube for a cubic lattice, the orthohexagonal cell for a
hexagonal one; see Lattice::orthogonal_cell).
basis: u8Index of the site within the cell, into the site list of
Lattice::orthogonal_cell (for a cubic lattice,
Lattice::conventional_cell_sites).
position: [f64; 3]Site position, crystal frame, metres.
s: f64Distance along the path from its start, metres (0 <= s <= L).
p: f64Impact parameter, metres (p <= p_max).
Trait Implementations§
impl Copy for Candidate
impl StructuralPartialEq for Candidate
Auto Trait Implementations§
impl Freeze for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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