pub struct SystemInput {
pub size: Option<Vec<usize>>,
pub periodic: bool,
pub leads: Option<Vec<String>>,
}Expand description
The sample, [system]: its size, its boundaries and its leads.
Fields§
§size: Option<Vec<usize>>Cells along each lattice direction.
periodic: boolPeriodic boundaries in every direction (a torus): spectra, densities of states, conductivities, time evolution.
leads: Option<Vec<String>>Leads on the faces of the sample, -x, +x, -y, +y, -z, +z (default -x, +x).
Trait Implementations§
Source§impl Clone for SystemInput
impl Clone for SystemInput
Source§fn clone(&self) -> SystemInput
fn clone(&self) -> SystemInput
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 SystemInput
impl Debug for SystemInput
Source§impl Default for SystemInput
impl Default for SystemInput
Source§fn default() -> SystemInput
fn default() -> SystemInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SystemInput
impl<'de> Deserialize<'de> for SystemInput
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 SystemInput
impl RefUnwindSafe for SystemInput
impl Send for SystemInput
impl Sync for SystemInput
impl Unpin for SystemInput
impl UnsafeUnpin for SystemInput
impl UnwindSafe for SystemInput
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