Skip to main content

OnSite

Trait OnSite 

Source
pub trait OnSite: Send + Sync {
    // Required method
    fn matrix(&self, site: &Site) -> Option<CMat>;
}
Expand description

Site-dependent on-site term, added to the sublattice on-site matrix.

Required Methods§

Source

fn matrix(&self, site: &Site) -> Option<CMat>

Extra on-site matrix of site, or None for no contribution.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F: Fn(&Site) -> Option<CMat> + Send + Sync> OnSite for F