pub struct ForceInformation<For> {
pub force: For,
pub cell_index_in_vector: usize,
pub index_sender: VoxelPlainIndex,
}
Available on crate feature
chili
only.Expand description
Return type to the requested PosInformation.
This type is returned after performing all necessary force calculations in update_mechanics_interaction_step_2. The received information is then used in combination with the already present information to update the position and velocity of cells in update_mechanics_interaction_step_3.
Fields§
§force: For
Overall force acting on cell.
This force is already combined in the sense that multiple forces may be added together.
cell_index_in_vector: usize
Index of cell in stored vector
This property works in tandem with Self::index_sender in order to send the calculated information to the correct cell and update its properties.
index_sender: VoxelPlainIndex
The voxel index where information is returned to
Auto Trait Implementations§
impl<For> Freeze for ForceInformation<For>where
For: Freeze,
impl<For> RefUnwindSafe for ForceInformation<For>where
For: RefUnwindSafe,
impl<For> Send for ForceInformation<For>where
For: Send,
impl<For> Sync for ForceInformation<For>where
For: Sync,
impl<For> Unpin for ForceInformation<For>where
For: Unpin,
impl<For> UnwindSafe for ForceInformation<For>where
For: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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