pub struct AtomIn {
pub index: i32,
pub element: Option<String>,
pub z: Option<u32>,
pub x: f64,
pub y: f64,
pub label: Option<String>,
pub charge: i32,
}Expand description
Atom input for a molecule depict call (SVG-space coords from the caller).
Identity: pass element and/or atomic number z. If only z is
set, the symbol comes from crate::element_symbol.
Fields§
§index: i32§element: Option<String>§z: Option<u32>Atomic number (0 = *). Used when element is omitted.
x: f64§y: f64§label: Option<String>§charge: i32Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AtomIn
impl<'de> Deserialize<'de> for AtomIn
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
impl StructuralPartialEq for AtomIn
Auto Trait Implementations§
impl Freeze for AtomIn
impl RefUnwindSafe for AtomIn
impl Send for AtomIn
impl Sync for AtomIn
impl Unpin for AtomIn
impl UnsafeUnpin for AtomIn
impl UnwindSafe for AtomIn
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