pub struct ConservedQuantity {
pub name: String,
pub symmetry: Symmetry,
pub expression: String,
}Expand description
A conserved Noether charge associated to a continuous symmetry.
Fields§
§name: StringName of the conserved quantity (e.g., “energy”, “momentum”).
symmetry: SymmetryThe symmetry responsible for conservation.
expression: StringMathematical expression for the conserved charge.
Implementations§
Trait Implementations§
Source§impl Clone for ConservedQuantity
impl Clone for ConservedQuantity
Source§fn clone(&self) -> ConservedQuantity
fn clone(&self) -> ConservedQuantity
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ConservedQuantity
impl RefUnwindSafe for ConservedQuantity
impl Send for ConservedQuantity
impl Sync for ConservedQuantity
impl Unpin for ConservedQuantity
impl UnsafeUnpin for ConservedQuantity
impl UnwindSafe for ConservedQuantity
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