[][src]Struct qmc::sse::qmc_traits::diagonal::Hamiltonian

pub struct Hamiltonian<'a, H, E> where
    H: Fn(&[usize], usize, &[bool], &[bool]) -> f64,
    E: Fn(usize) -> (&'a [usize], bool)
{ /* fields omitted */ }

A hamiltonian for the graph.

Implementations

impl<'a, H, E> Hamiltonian<'a, H, E> where
    H: Fn(&[usize], usize, &[bool], &[bool]) -> f64,
    E: Fn(usize) -> (&'a [usize], bool)
[src]

pub fn new(hamiltonian: H, edge_fn: E, num_edges: usize) -> Self[src]

Construct a new hamiltonian with a function, edge lookup function, and the number of bonds.

Trait Implementations

impl<'a, H: Debug, E: Debug> Debug for Hamiltonian<'a, H, E> where
    H: Fn(&[usize], usize, &[bool], &[bool]) -> f64,
    E: Fn(usize) -> (&'a [usize], bool)
[src]

Auto Trait Implementations

impl<'a, H, E> RefUnwindSafe for Hamiltonian<'a, H, E> where
    E: RefUnwindSafe,
    H: RefUnwindSafe

impl<'a, H, E> Send for Hamiltonian<'a, H, E> where
    E: Send,
    H: Send

impl<'a, H, E> Sync for Hamiltonian<'a, H, E> where
    E: Sync,
    H: Sync

impl<'a, H, E> Unpin for Hamiltonian<'a, H, E> where
    E: Unpin,
    H: Unpin

impl<'a, H, E> UnwindSafe for Hamiltonian<'a, H, E> where
    E: UnwindSafe,
    H: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,