[−]Trait lumol::input::FromTomlWithData
Convert a TOML table and some additional owned data to a Rust type.
Associated Types
type Data
The type of the additional data needed.
Required methods
fn from_toml(
table: &Map<String, Value>,
data: Self::Data
) -> Result<Self, Error>
table: &Map<String, Value>,
data: Self::Data
) -> Result<Self, Error>
Do the conversion from table
and data
to Self.
Implementors
impl FromTomlWithData for Resize
impl FromTomlWithData for Rotate
type Data = PathBuf
pub fn from_toml(
config: &Map<String, Value>,
root: PathBuf
) -> Result<Rotate, Error>
config: &Map<String, Value>,
root: PathBuf
) -> Result<Rotate, Error>
impl FromTomlWithData for Translate
type Data = PathBuf
pub fn from_toml(
config: &Map<String, Value>,
root: PathBuf
) -> Result<Translate, Error>
config: &Map<String, Value>,
root: PathBuf
) -> Result<Translate, Error>
impl FromTomlWithData for AnisoBerendsenBarostat
type Data = f64
pub fn from_toml(
config: &Map<String, Value>,
timestep: f64
) -> Result<AnisoBerendsenBarostat, Error>
config: &Map<String, Value>,
timestep: f64
) -> Result<AnisoBerendsenBarostat, Error>
impl FromTomlWithData for BerendsenBarostat
type Data = f64
pub fn from_toml(
config: &Map<String, Value>,
timestep: f64
) -> Result<BerendsenBarostat, Error>
config: &Map<String, Value>,
timestep: f64
) -> Result<BerendsenBarostat, Error>
impl FromTomlWithData for LeapFrog
impl FromTomlWithData for VelocityVerlet
type Data = f64
pub fn from_toml(
&Map<String, Value>,
timestep: f64
) -> Result<VelocityVerlet, Error>
&Map<String, Value>,
timestep: f64
) -> Result<VelocityVerlet, Error>
impl FromTomlWithData for Verlet
impl FromTomlWithData for MonteCarlo
type Data = PathBuf
pub fn from_toml(
config: &Map<String, Value>,
root: PathBuf
) -> Result<MonteCarlo, Error>
config: &Map<String, Value>,
root: PathBuf
) -> Result<MonteCarlo, Error>
impl FromTomlWithData for TableComputation
type Data = Box<dyn PairPotential + 'static, Global>
pub fn from_toml(
table: &Map<String, Value>,
potential: Box<dyn PairPotential + 'static, Global>
) -> Result<TableComputation, Error>
table: &Map<String, Value>,
potential: Box<dyn PairPotential + 'static, Global>
) -> Result<TableComputation, Error>