pub struct EntityRotation<T> {
pub yaw: T,
pub pitch: T,
}
Fields§
§yaw: T
§pitch: T
Implementations§
Trait Implementations§
Source§impl<T> Clone for EntityRotation<T>where
T: Clone,
impl<T> Clone for EntityRotation<T>where
T: Clone,
Source§impl<T> Debug for EntityRotation<T>where
T: Debug,
impl<T> Debug for EntityRotation<T>where
T: Debug,
Source§impl<T> Deserialize for EntityRotation<T>where
T: Deserialize,
impl<T> Deserialize for EntityRotation<T>where
T: Deserialize,
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl<T> Display for EntityRotation<T>where
T: Display,
impl<T> Display for EntityRotation<T>where
T: Display,
Source§impl<'a, T> From<&'a EntityRotation<T>> for (&'a T, &'a T)
impl<'a, T> From<&'a EntityRotation<T>> for (&'a T, &'a T)
Source§fn from(other: &'a EntityRotation<T>) -> Self
fn from(other: &'a EntityRotation<T>) -> Self
Converts to this type from the input type.
Source§impl<'a, T> From<&'a EntityRotation<T>> for (T, T)where
T: Clone,
impl<'a, T> From<&'a EntityRotation<T>> for (T, T)where
T: Clone,
Source§fn from(other: &'a EntityRotation<T>) -> Self
fn from(other: &'a EntityRotation<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<(T, T)> for EntityRotation<T>
impl<T> From<(T, T)> for EntityRotation<T>
Source§impl<T> From<EntityRotation<T>> for (T, T)
impl<T> From<EntityRotation<T>> for (T, T)
Source§fn from(other: EntityRotation<T>) -> Self
fn from(other: EntityRotation<T>) -> Self
Converts to this type from the input type.
Source§impl<T> Hash for EntityRotation<T>where
T: Hash,
impl<T> Hash for EntityRotation<T>where
T: Hash,
Source§impl<T, Rhs> PartialEq<EntityRotation<Rhs>> for EntityRotation<T>where
T: PartialEq<Rhs>,
impl<T, Rhs> PartialEq<EntityRotation<Rhs>> for EntityRotation<T>where
T: PartialEq<Rhs>,
Source§fn eq(&self, other: &EntityRotation<Rhs>) -> bool
fn eq(&self, other: &EntityRotation<Rhs>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§fn ne(&self, other: &EntityRotation<Rhs>) -> bool
fn ne(&self, other: &EntityRotation<Rhs>) -> bool
Tests for
!=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.Source§impl<T> Serialize for EntityRotation<T>where
T: Serialize,
impl<T> Serialize for EntityRotation<T>where
T: Serialize,
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl<T> Copy for EntityRotation<T>where
T: Copy,
Auto Trait Implementations§
impl<T> Freeze for EntityRotation<T>where
T: Freeze,
impl<T> RefUnwindSafe for EntityRotation<T>where
T: RefUnwindSafe,
impl<T> Send for EntityRotation<T>where
T: Send,
impl<T> Sync for EntityRotation<T>where
T: Sync,
impl<T> Unpin for EntityRotation<T>where
T: Unpin,
impl<T> UnwindSafe for EntityRotation<T>where
T: UnwindSafe,
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