#[non_exhaustive]
pub enum LeaveHorizonType {
Player,
Mob,
Unknown(u8),
}
Expand description
Indicates the type of entity that just left the player’s horizon.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Player
Mob
Unknown(u8)
Trait Implementations
sourceimpl Clone for LeaveHorizonType
impl Clone for LeaveHorizonType
sourcefn clone(&self) -> LeaveHorizonType
fn clone(&self) -> LeaveHorizonType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LeaveHorizonType
impl Debug for LeaveHorizonType
sourceimpl<'de> DeserializeV5<'de> for LeaveHorizonType
impl<'de> DeserializeV5<'de> for LeaveHorizonType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl From<LeaveHorizonType> for u8
impl From<LeaveHorizonType> for u8
sourcefn from(v: LeaveHorizonType) -> Self
fn from(v: LeaveHorizonType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for LeaveHorizonType
impl From<u8> for LeaveHorizonType
sourceimpl Hash for LeaveHorizonType
impl Hash for LeaveHorizonType
sourceimpl PartialEq<LeaveHorizonType> for LeaveHorizonType
impl PartialEq<LeaveHorizonType> for LeaveHorizonType
sourcefn eq(&self, other: &LeaveHorizonType) -> bool
fn eq(&self, other: &LeaveHorizonType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LeaveHorizonType) -> bool
fn ne(&self, other: &LeaveHorizonType) -> bool
This method tests for !=
.
sourceimpl SerializeV5 for LeaveHorizonType
impl SerializeV5 for LeaveHorizonType
impl Copy for LeaveHorizonType
impl Eq for LeaveHorizonType
impl StructuralEq for LeaveHorizonType
impl StructuralPartialEq for LeaveHorizonType
Auto Trait Implementations
impl RefUnwindSafe for LeaveHorizonType
impl Send for LeaveHorizonType
impl Sync for LeaveHorizonType
impl Unpin for LeaveHorizonType
impl UnwindSafe for LeaveHorizonType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more