pub struct RingStep {
pub atom: usize,
pub image: [i32; 3],
}Expand description
One atom of a ring path, with its lattice image relative to the first atom.
Fields§
§atom: usizeAtom index in the P1 cell.
image: [i32; 3]Lattice image applied to this atom in the path.
Trait Implementations§
impl Copy for RingStep
impl Eq for RingStep
Source§impl Ord for RingStep
impl Ord for RingStep
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for RingStep
impl PartialOrd for RingStep
impl StructuralPartialEq for RingStep
Auto Trait Implementations§
impl Forget for RingStep
impl Freeze for RingStep
impl Move for RingStep
impl RefUnwindSafe for RingStep
impl Send for RingStep
impl Sync for RingStep
impl Unpin for RingStep
impl UnsafeUnpin for RingStep
impl UnwindSafe for RingStep
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,
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