pub struct StructurePlan {
pub filepath: PathBuf,
pub number: usize,
pub mol_restraints: Vec<RestraintSpec>,
pub atom_groups: Vec<AtomGroup>,
pub center: bool,
pub fixed: Option<([f64; 3], [f64; 3])>,
}Expand description
Per-structure lowering: resolved file path plus the restraints / pose
hints that apply to its Target.
Fields§
§filepath: PathBufAbsolute path to the template molecule file (resolved against the script’s base directory).
number: usizeNumber of copies to pack.
mol_restraints: Vec<RestraintSpec>Molecule-wide restraints.
atom_groups: Vec<AtomGroup>Atom-subset restraints (atoms … end atoms blocks). Indices are
1-based as written in the script; StructurePlan::apply
converts to 0-based when stamping them on a Target.
center: boolWhether the center keyword was present.
fixed: Option<([f64; 3], [f64; 3])>Fixed placement: (position [x,y,z], euler [ex,ey,ez]).
Implementations§
Auto Trait Implementations§
impl Freeze for StructurePlan
impl RefUnwindSafe for StructurePlan
impl Send for StructurePlan
impl Sync for StructurePlan
impl Unpin for StructurePlan
impl UnsafeUnpin for StructurePlan
impl UnwindSafe for StructurePlan
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