[]Struct lumol::sys::Bond

pub struct Bond { /* fields omitted */ }

A Bond between the particles at indexes i and j

This structure ensure an unique representation of a Bond by enforcing i < j

Implementations

impl Bond

pub fn new(first: usize, second: usize) -> Bond

Create a new Bond between the particles at indexes first and second

pub fn i(&self) -> usize

Get the first particle in the bond

pub fn j(&self) -> usize

Get the second particle in the bond

Trait Implementations

impl Clone for Bond

impl Copy for Bond

impl Debug for Bond

impl Eq for Bond

impl Hash for Bond

impl Ord for Bond

impl PartialEq<Bond> for Bond

impl PartialOrd<Bond> for Bond

impl StructuralEq for Bond

impl StructuralPartialEq for Bond

Auto Trait Implementations

impl RefUnwindSafe for Bond

impl Send for Bond

impl Sync for Bond

impl Unpin for Bond

impl UnwindSafe for Bond

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,