pub struct MolTemplate {
pub id: String,
pub smiles: Option<String>,
pub cxsmiles: Option<String>,
pub molfile: Option<String>,
pub align: Option<AlignOpts>,
pub template_for: Vec<MolTemplate>,
}Expand description
One node in a coord_gen forest (root = free layout; children align to parent).
Fields§
§id: StringRust-assigned unique id; round-trips to the document node.
smiles: Option<String>§cxsmiles: Option<String>§molfile: Option<String>§align: Option<AlignOpts>Opts for aligning onto the parent; None on roots.
template_for: Vec<MolTemplate>Children that use this node as their align template.
Implementations§
Trait Implementations§
Source§impl Clone for MolTemplate
impl Clone for MolTemplate
Source§fn clone(&self) -> MolTemplate
fn clone(&self) -> MolTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MolTemplate
impl Debug for MolTemplate
Source§impl<'de> Deserialize<'de> for MolTemplate
impl<'de> Deserialize<'de> for MolTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MolTemplate
impl PartialEq for MolTemplate
Source§impl Serialize for MolTemplate
impl Serialize for MolTemplate
impl StructuralPartialEq for MolTemplate
Auto Trait Implementations§
impl Freeze for MolTemplate
impl RefUnwindSafe for MolTemplate
impl Send for MolTemplate
impl Sync for MolTemplate
impl Unpin for MolTemplate
impl UnsafeUnpin for MolTemplate
impl UnwindSafe for MolTemplate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more