Enum hepmc2::event::LengthUnit
source · pub enum LengthUnit {
MM,
CM,
}
Expand description
Length units
Variants§
Trait Implementations§
source§impl Clone for LengthUnit
impl Clone for LengthUnit
source§fn clone(&self) -> LengthUnit
fn clone(&self) -> LengthUnit
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 LengthUnit
impl Debug for LengthUnit
source§impl Default for LengthUnit
impl Default for LengthUnit
source§impl<'de> Deserialize<'de> for LengthUnit
impl<'de> Deserialize<'de> for LengthUnit
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 LengthUnit
impl FromStr for LengthUnit
source§impl Hash for LengthUnit
impl Hash for LengthUnit
source§impl Ord for LengthUnit
impl Ord for LengthUnit
source§fn cmp(&self, other: &LengthUnit) -> Ordering
fn cmp(&self, other: &LengthUnit) -> 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 LengthUnit
impl PartialEq for LengthUnit
source§fn eq(&self, other: &LengthUnit) -> bool
fn eq(&self, other: &LengthUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LengthUnit
impl PartialOrd for LengthUnit
source§fn partial_cmp(&self, other: &LengthUnit) -> Option<Ordering>
fn partial_cmp(&self, other: &LengthUnit) -> 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 LengthUnit
impl Serialize for LengthUnit
source§impl TryFrom<&str> for LengthUnit
impl TryFrom<&str> for LengthUnit
impl Copy for LengthUnit
impl Eq for LengthUnit
impl StructuralPartialEq for LengthUnit
Auto Trait Implementations§
impl Freeze for LengthUnit
impl RefUnwindSafe for LengthUnit
impl Send for LengthUnit
impl Sync for LengthUnit
impl Unpin for LengthUnit
impl UnwindSafe for LengthUnit
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