#[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.
Trait Implementations§
Source§impl Clone for LeaveHorizonType
impl Clone for LeaveHorizonType
Source§fn clone(&self) -> LeaveHorizonType
fn clone(&self) -> LeaveHorizonType
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 LeaveHorizonType
impl Debug for LeaveHorizonType
Source§impl<'de> DeserializeV5<'de> for LeaveHorizonType
impl<'de> DeserializeV5<'de> for LeaveHorizonType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
Source§impl From<LeaveHorizonType> for u8
impl From<LeaveHorizonType> for u8
Source§fn from(v: LeaveHorizonType) -> Self
fn from(v: LeaveHorizonType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for LeaveHorizonType
impl From<u8> for LeaveHorizonType
Source§impl Hash for LeaveHorizonType
impl Hash for LeaveHorizonType
Source§impl PartialEq for LeaveHorizonType
impl PartialEq for LeaveHorizonType
Source§impl SerializeV5 for LeaveHorizonType
impl SerializeV5 for LeaveHorizonType
impl Copy for LeaveHorizonType
impl Eq for LeaveHorizonType
impl StructuralPartialEq for LeaveHorizonType
Auto Trait Implementations§
impl Freeze for LeaveHorizonType
impl RefUnwindSafe for LeaveHorizonType
impl Send for LeaveHorizonType
impl Sync for LeaveHorizonType
impl Unpin for LeaveHorizonType
impl UnwindSafe for LeaveHorizonType
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