[]Struct lumol::input::Input

pub struct Input { /* fields omitted */ }

An input file for Lumol.


impl Input

pub fn read_system(&self) -> Result<System, Error>

Get the the simulated system.

impl Input

pub fn read_simulation(&self) -> Result<Simulation, Error>

Get the the simulation.

impl Input

pub fn new<P>(path: P) -> Result<Input, Error> where
    P: Into<PathBuf>, 

Read the file at Path and create a new Input from it.

pub fn from_str(path: PathBuf, string: &str) -> Result<Input, Error>

Read the Input from a TOML formatted string.

pub fn read(&self) -> Result<Config, Error>

Read input file and get the corresponding Config

Auto Trait Implementations

impl RefUnwindSafe for Input

impl Send for Input

impl Sync for Input

impl Unpin for Input

impl UnwindSafe for Input

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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