Trait WangLandauEnergy

Source
pub trait WangLandauEnergy<Energy>: WangLandau {
    // Required method
    fn energy(&self) -> Option<&Energy>;
}
Expand description

§trait to request the current energy from a WangLandau simulation

  • None if the energy was not calculated yet
  • See also WangLandauEEH

Required Methods§

Source

fn energy(&self) -> Option<&Energy>

returns the last accepted Energy calculated None if no energy was calculated yet

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Hist, R, E, S, Res, Energy> WangLandauEnergy<Energy> for WangLandau1T<Hist, R, E, S, Res, Energy>

Source§

impl<R, E, S, Res, Hist, Energy> WangLandauEnergy<Energy> for WangLandauAdaptive<Hist, R, E, S, Res, Energy>