pub struct BondMut<'a> { /* private fields */ }Expand description
键属性的可变句柄,由 MolBuilder::bond_mut 取得。
不提供修改端点的途径,理由见 MolBuilder::bond_mut。
Implementations§
Source§impl BondMut<'_>
impl BondMut<'_>
Sourcepub fn set_direction(&mut self, direction: BondDirection)
pub fn set_direction(&mut self, direction: BondDirection)
设置方向键标记(/ \)
Sourcepub fn set_stereo(&mut self, stereo: BondStereo)
pub fn set_stereo(&mut self, stereo: BondStereo)
设置双键立体
Sourcepub fn set_stereo_atoms(&mut self, atoms: [u32; 2])
pub fn set_stereo_atoms(&mut self, atoms: [u32; 2])
设置顺反的参照原子。
与 set_stereo 配套 —— 顺反离开参照没有意义,
两者要一起写。
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for BondMut<'a>
impl<'a> Freeze for BondMut<'a>
impl<'a> RefUnwindSafe for BondMut<'a>
impl<'a> Send for BondMut<'a>
impl<'a> Sync for BondMut<'a>
impl<'a> Unpin for BondMut<'a>
impl<'a> UnsafeUnpin for BondMut<'a>
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