Struct hepmc2::event::FourVector
source · pub struct FourVector(pub [f64; 4]);
Expand description
Simple Lorentz vector with components (t, x, y, z)
Tuple Fields§
§0: [f64; 4]
Implementations§
Trait Implementations§
source§impl Clone for FourVector
impl Clone for FourVector
source§fn clone(&self) -> FourVector
fn clone(&self) -> FourVector
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 FourVector
impl Debug for FourVector
source§impl Default for FourVector
impl Default for FourVector
source§fn default() -> FourVector
fn default() -> FourVector
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FourVector
impl<'de> Deserialize<'de> for FourVector
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Index<usize> for FourVector
impl Index<usize> for FourVector
source§impl IndexMut<usize> for FourVector
impl IndexMut<usize> for FourVector
source§impl PartialEq for FourVector
impl PartialEq for FourVector
source§fn eq(&self, other: &FourVector) -> bool
fn eq(&self, other: &FourVector) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FourVector
impl PartialOrd for FourVector
source§fn partial_cmp(&self, other: &FourVector) -> Option<Ordering>
fn partial_cmp(&self, other: &FourVector) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for FourVector
impl Serialize for FourVector
impl Copy for FourVector
impl StructuralPartialEq for FourVector
Auto Trait Implementations§
impl Freeze for FourVector
impl RefUnwindSafe for FourVector
impl Send for FourVector
impl Sync for FourVector
impl Unpin for FourVector
impl UnwindSafe for FourVector
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