pub struct ScriptPlan {
pub packer: Molpack,
pub structures: Vec<StructurePlan>,
pub output: PathBuf,
pub nloop: usize,
pub filetype: Option<String>,
}Expand description
Loader-agnostic lowering of a Script: paths resolved, restraints
kept as parsed RestraintSpecs, no filesystem access yet.
Iterate structures, load each
StructurePlan::filepath with whatever frame loader you have, build
a Target from the frame, and call StructurePlan::apply to
stamp on the script’s restraints / centering / fixed placement.
Fields§
§packer: MolpackPacker pre-configured with tolerance, seed, and (optional) pbc.
structures: Vec<StructurePlan>One entry per structure … end structure block, in source order.
output: PathBufResolved output file path.
nloop: usizeOuter-loop iteration cap (nloop keyword; default 200 * ntype).
filetype: Option<String>Global filetype override (script-level), if any. Frame loaders
should fall back to extension-based detection when this is None.
Auto Trait Implementations§
impl !RefUnwindSafe for ScriptPlan
impl !Sync for ScriptPlan
impl !UnwindSafe for ScriptPlan
impl Freeze for ScriptPlan
impl Send for ScriptPlan
impl Unpin for ScriptPlan
impl UnsafeUnpin for ScriptPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more