pub struct InventoryDelta {
pub slab: usize,
pub z: u8,
pub delta_atoms_m2: f64,
}Expand description
An inventory change for one element in one slab, atoms/m² (positive adds).
Fields§
§slab: usizeSlab index (0 = front), in the grid before the update.
z: u8Atomic number.
delta_atoms_m2: f64Change in areal inventory, atoms/m².
Trait Implementations§
Source§impl Clone for InventoryDelta
impl Clone for InventoryDelta
Source§fn clone(&self) -> InventoryDelta
fn clone(&self) -> InventoryDelta
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 moreimpl Copy for InventoryDelta
Source§impl Debug for InventoryDelta
impl Debug for InventoryDelta
Source§impl PartialEq for InventoryDelta
impl PartialEq for InventoryDelta
impl StructuralPartialEq for InventoryDelta
Auto Trait Implementations§
impl Freeze for InventoryDelta
impl RefUnwindSafe for InventoryDelta
impl Send for InventoryDelta
impl Sync for InventoryDelta
impl Unpin for InventoryDelta
impl UnsafeUnpin for InventoryDelta
impl UnwindSafe for InventoryDelta
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