pub enum ConservationLaw {
Energy,
Mass,
Information,
Custom(String),
}Expand description
Kinds of conservation laws that can be verified.
Variants§
Energy
Conservation of energy: Σ E_in == Σ E_out
Mass
Conservation of mass: Σ m_in == Σ m_out
Information
Conservation of information (e.g., entropy bounds, data integrity)
Custom(String)
A user-defined conservation law with a label.
Trait Implementations§
Source§impl Clone for ConservationLaw
impl Clone for ConservationLaw
Source§fn clone(&self) -> ConservationLaw
fn clone(&self) -> ConservationLaw
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConservationLaw
impl Debug for ConservationLaw
Source§impl Display for ConservationLaw
impl Display for ConservationLaw
impl Eq for ConservationLaw
Source§impl Hash for ConservationLaw
impl Hash for ConservationLaw
Source§impl PartialEq for ConservationLaw
impl PartialEq for ConservationLaw
Source§fn eq(&self, other: &ConservationLaw) -> bool
fn eq(&self, other: &ConservationLaw) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConservationLaw
Auto Trait Implementations§
impl Freeze for ConservationLaw
impl RefUnwindSafe for ConservationLaw
impl Send for ConservationLaw
impl Sync for ConservationLaw
impl Unpin for ConservationLaw
impl UnsafeUnpin for ConservationLaw
impl UnwindSafe for ConservationLaw
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