pub struct Hopping {
pub from: usize,
pub to: usize,
pub offset: Cell,
pub matrix: CMat,
}Expand description
A hopping term: ⟨(R, from)| H |(R + offset, to)⟩ = matrix. Its Hermitian conjugate (the
reverse hop) is added automatically.
Fields§
§from: usizeSublattice of the site in cell R, whose orbitals are the rows of matrix.
to: usizeSublattice of the site in cell R + offset, whose orbitals are the columns of matrix.
offset: CellCell of the to site relative to the from site, along the primitive vectors.
matrix: CMatThe block, the same in every cell R (before hopping terms and Peierls phases).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hopping
impl RefUnwindSafe for Hopping
impl Send for Hopping
impl Sync for Hopping
impl Unpin for Hopping
impl UnsafeUnpin for Hopping
impl UnwindSafe for Hopping
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more