[]Trait lumol::input::FromTomlWithData

pub trait FromTomlWithData {
    type Data;
    fn from_toml(
        table: &Map<String, Value>,
        data: Self::Data
    ) -> Result<Self, Error>; }

Convert a TOML table and some additional owned data to a Rust type.

Associated Types

type Data

The type of the additional data needed.

Loading content...

Required methods

fn from_toml(
    table: &Map<String, Value>,
    data: Self::Data
) -> Result<Self, Error>

Do the conversion from table and data to Self.

Loading content...

Implementors

impl FromTomlWithData for Resize

type Data = PathBuf

impl FromTomlWithData for Rotate

type Data = PathBuf

impl FromTomlWithData for Translate

type Data = PathBuf

impl FromTomlWithData for AnisoBerendsenBarostat

type Data = f64

impl FromTomlWithData for BerendsenBarostat

type Data = f64

impl FromTomlWithData for LeapFrog

type Data = f64

impl FromTomlWithData for VelocityVerlet

type Data = f64

impl FromTomlWithData for Verlet

type Data = f64

impl FromTomlWithData for MonteCarlo

type Data = PathBuf

impl FromTomlWithData for TableComputation

type Data = Box<dyn PairPotential + 'static, Global>

Loading content...