#[non_exhaustive]pub struct SimReport {
pub outcome: SimOutcome,
pub ticks: u32,
pub reached: usize,
pub end: [f64; 3],
pub collisions: u32,
pub first_collision: Option<u32>,
pub max_fall: f32,
pub trace: Vec<[f64; 3]>,
}Expand description
The result of simulate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.outcome: SimOutcomeHow it ended.
ticks: u32Ticks run.
reached: usizeIndex of the last step reached.
end: [f64; 3]Feet position at the end.
collisions: u32Ticks with a horizontal collision during moves that should not touch anything (walks, diagonals, drops, gap jumps). Jumps up, climbs and swims onto land are expected to touch the block they go onto and are not counted.
first_collision: Option<u32>The first tick of such a collision.
max_fall: f32Largest fall distance at a landing (vanilla fall damage starts above 3).
trace: Vec<[f64; 3]>Feet position after every tick.
Trait Implementations§
impl StructuralPartialEq for SimReport
Auto Trait Implementations§
impl Forget for SimReport
impl Freeze for SimReport
impl Move for SimReport
impl RefUnwindSafe for SimReport
impl Send for SimReportwhere
RawVecInner: Send,
impl Sync for SimReportwhere
RawVecInner: Sync,
impl Unpin for SimReport
impl UnsafeUnpin for SimReport
impl UnwindSafe for SimReportwhere
RawVecInner: 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