Enum hepmc2::event::EnergyUnit
source · pub enum EnergyUnit {
MEV,
GEV,
}
Expand description
Energy units
Variants§
Trait Implementations§
source§impl Clone for EnergyUnit
impl Clone for EnergyUnit
source§fn clone(&self) -> EnergyUnit
fn clone(&self) -> EnergyUnit
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 EnergyUnit
impl Debug for EnergyUnit
source§impl Default for EnergyUnit
impl Default for EnergyUnit
source§impl<'de> Deserialize<'de> for EnergyUnit
impl<'de> Deserialize<'de> for EnergyUnit
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 FromStr for EnergyUnit
impl FromStr for EnergyUnit
source§impl Hash for EnergyUnit
impl Hash for EnergyUnit
source§impl Ord for EnergyUnit
impl Ord for EnergyUnit
source§fn cmp(&self, other: &EnergyUnit) -> Ordering
fn cmp(&self, other: &EnergyUnit) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EnergyUnit
impl PartialEq for EnergyUnit
source§fn eq(&self, other: &EnergyUnit) -> bool
fn eq(&self, other: &EnergyUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EnergyUnit
impl PartialOrd for EnergyUnit
source§fn partial_cmp(&self, other: &EnergyUnit) -> Option<Ordering>
fn partial_cmp(&self, other: &EnergyUnit) -> 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 EnergyUnit
impl Serialize for EnergyUnit
source§impl TryFrom<&str> for EnergyUnit
impl TryFrom<&str> for EnergyUnit
impl Copy for EnergyUnit
impl Eq for EnergyUnit
impl StructuralPartialEq for EnergyUnit
Auto Trait Implementations§
impl Freeze for EnergyUnit
impl RefUnwindSafe for EnergyUnit
impl Send for EnergyUnit
impl Sync for EnergyUnit
impl Unpin for EnergyUnit
impl UnwindSafe for EnergyUnit
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