pub struct Site {
pub cell: Cell,
pub sub: usize,
}Expand description
A site: a unit cell and a sublattice index.
Fields§
§cell: CellUnit cell, in integer coordinates along the primitive vectors.
sub: usizeIndex of the sublattice in Lattice::sublattices.
Trait Implementations§
impl Copy for Site
impl Eq for Site
Source§impl Ord for Site
impl Ord for Site
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Site
impl PartialOrd for Site
impl StructuralPartialEq for Site
Auto Trait Implementations§
impl Freeze for Site
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnsafeUnpin for Site
impl UnwindSafe for Site
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