Struct velvet::prelude::SystemBuilder[][src]

pub struct SystemBuilder { /* fields omitted */ }

Constructor for the System type.

Implementations

impl SystemBuilder[src]

pub fn new(size: usize) -> SystemBuilder[src]

Returns a new system builder.

Arguments

  • size - The number of atoms in the system

pub fn with_cell(self, cell: Cell) -> SystemBuilder[src]

Sets the system cell.

pub fn with_elements(self, elements: Vec<Element, Global>) -> SystemBuilder[src]

Sets the element of each atom in the system.

pub fn with_positions(
    self,
    positions: Vec<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>, Global>
) -> SystemBuilder
[src]

Sets the position of each atom in the system.

pub fn with_velocities(
    self,
    velocities: Vec<Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>, Global>
) -> SystemBuilder
[src]

Sets the velocity of each atom in the system.

pub fn build(self) -> System[src]

Finalizes the build and returns an initialized system.

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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>,