pub struct HoppingInput {
pub from: usize,
pub to: usize,
pub offset: Vec<i64>,
pub matrix: String,
}Expand description
A hopping, [[model.hopping]]: ⟨(R, from)| H |(R + offset, to)⟩, the reverse hop added.
Fields§
§from: usizeSublattice of the site in cell R (default 0).
to: usizeSublattice of the site in cell R + offset (default 0).
offset: Vec<i64>Cell offset of the to site (one integer per lattice direction).
matrix: StringMatrix expression: rows the orbitals of from, columns those of to.
Trait Implementations§
Source§impl Clone for HoppingInput
impl Clone for HoppingInput
Source§fn clone(&self) -> HoppingInput
fn clone(&self) -> HoppingInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HoppingInput
impl Debug for HoppingInput
Source§impl<'de> Deserialize<'de> for HoppingInput
impl<'de> Deserialize<'de> for HoppingInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HoppingInput
impl RefUnwindSafe for HoppingInput
impl Send for HoppingInput
impl Sync for HoppingInput
impl Unpin for HoppingInput
impl UnsafeUnpin for HoppingInput
impl UnwindSafe for HoppingInput
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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