pub trait Peierls: Send + Sync {
// Required method
fn phase(&self, to: Vec3, from: Vec3) -> f64;
}Expand description
Peierls phase of the hopping ⟨i| H |j⟩: φ(r_i, r_j) = ∫ A · dl from r_j to r_i, in
radians (charge and ħ absorbed in A). It must be antisymmetric: φ(a, b) = −φ(b, a).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".