Enum hltas::types::StrafeType
source · pub enum StrafeType {
MaxAccel,
MaxAngle,
MaxDeccel,
ConstSpeed,
ConstYawspeed(f32),
}
Expand description
Type of automatic strafing.
Variants§
MaxAccel
Gain as much speed as possible.
MaxAngle
Turn as quickly as possible.
MaxDeccel
Lose as much speed as possible.
ConstSpeed
Turn without changing the velocity magnitude.
ConstYawspeed(f32)
Turn with constant rate.
Trait Implementations§
source§impl Clone for StrafeType
impl Clone for StrafeType
source§fn clone(&self) -> StrafeType
fn clone(&self) -> StrafeType
Returns a copy 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 StrafeType
impl Debug for StrafeType
source§impl PartialEq<StrafeType> for StrafeType
impl PartialEq<StrafeType> for StrafeType
source§fn eq(&self, other: &StrafeType) -> bool
fn eq(&self, other: &StrafeType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StrafeType
impl StructuralPartialEq for StrafeType
Auto Trait Implementations§
impl RefUnwindSafe for StrafeType
impl Send for StrafeType
impl Sync for StrafeType
impl Unpin for StrafeType
impl UnwindSafe for StrafeType
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