Struct boxcars::Trajectory
source · pub struct Trajectory {
pub location: Option<Vector3i>,
pub rotation: Option<Rotation>,
}
Expand description
Contains the optional location and rotation of an object when it spawns
Fields§
§location: Option<Vector3i>
§rotation: Option<Rotation>
Implementations§
source§impl Trajectory
impl Trajectory
pub fn from_spawn( bits: &mut LittleEndianReader<'_>, sp: SpawnTrajectory, net_version: i32 ) -> Option<Trajectory>
Trait Implementations§
source§impl Clone for Trajectory
impl Clone for Trajectory
source§fn clone(&self) -> Trajectory
fn clone(&self) -> Trajectory
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 Trajectory
impl Debug for Trajectory
source§impl PartialEq for Trajectory
impl PartialEq for Trajectory
source§fn eq(&self, other: &Trajectory) -> bool
fn eq(&self, other: &Trajectory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Trajectory
impl Serialize for Trajectory
impl Copy for Trajectory
impl Eq for Trajectory
impl StructuralPartialEq for Trajectory
Auto Trait Implementations§
impl Freeze for Trajectory
impl RefUnwindSafe for Trajectory
impl Send for Trajectory
impl Sync for Trajectory
impl Unpin for Trajectory
impl UnwindSafe for Trajectory
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