Enum SubmersionState
#[repr(u8)]pub enum SubmersionState {
Dry = 0,
Wading = 1,
Swimming = 2,
Diving = 3,
}Expand description
Locomotion and submersion mode of an entity.
Variants§
Dry = 0
Completely dry / out of water.
Wading = 1
Walking on bed with water around feet/calves (< 0.5m depth).
Swimming = 2
Water at chest/neck level, swimming locomotion enabled (0.5m .. 1.6m depth).
Diving = 3
Fully submerged underwater (6-DOF diving mechanics).
Trait Implementations§
§impl Clone for SubmersionState
impl Clone for SubmersionState
§fn clone(&self) -> SubmersionState
fn clone(&self) -> SubmersionState
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 SubmersionState
§impl Debug for SubmersionState
impl Debug for SubmersionState
impl Eq for SubmersionState
§impl PartialEq for SubmersionState
impl PartialEq for SubmersionState
impl StructuralPartialEq for SubmersionState
Auto Trait Implementations§
impl Freeze for SubmersionState
impl RefUnwindSafe for SubmersionState
impl Send for SubmersionState
impl Sync for SubmersionState
impl Unpin for SubmersionState
impl UnsafeUnpin for SubmersionState
impl UnwindSafe for SubmersionState
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.