pub struct MovementResult {
pub position: f64,
pub velocity: f64,
pub arrived: bool,
}Expand description
Result of one tick of movement physics.
Fields§
§position: f64Current position after this tick.
velocity: f64Current velocity after this tick.
arrived: boolWhether the elevator has arrived at the target.
Trait Implementations§
Source§impl Clone for MovementResult
impl Clone for MovementResult
Source§fn clone(&self) -> MovementResult
fn clone(&self) -> MovementResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MovementResult
impl Debug for MovementResult
impl Copy for MovementResult
Auto Trait Implementations§
impl Freeze for MovementResult
impl RefUnwindSafe for MovementResult
impl Send for MovementResult
impl Sync for MovementResult
impl Unpin for MovementResult
impl UnsafeUnpin for MovementResult
impl UnwindSafe for MovementResult
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