Skip to main content

Threading

Struct Threading 

Source
pub struct Threading {
    pub crossings: usize,
    pub pierces: usize,
    pub min_gap: f64,
    pub pairs: usize,
}
Expand description

一个构型的自穿账。

§只数同一个连通片里的

盐、共晶这类分子有多个互不相连的片段,而片段之间摆在哪儿是另一个问题, 与“链穿过自己“没有关系,修法也不同(那是片段摆放,不是几何精修)。

这不是理论上的顾虑:实测 RDKit 自己给多片段盐的构象里, [O-][N+]([O-])=O.F[Co+]12(F)(NCCN1)NCCN2 的硝酸根与钴配合物直接叠在一起, 两个原子只差 0.3 Å。把这种情形算进“自穿“,会让检测器在真实构象上 报出 48 次交叉 —— 然后校准这一步就废了,后面量什么都不作数。

Fields§

§crossings: usize

够远的键对(见 RIGID_TOPO)里,最短距离低于 CROSS_TOL 的对数。

§pierces: usize

(键, 环) 对的个数,不是键数 —— 一根键竖直穿过立方烷笼会记 2 (上下两个面各一个环),稠合/桥环体系里同一次穿插会被多个环各记一次。

§min_gap: f64

所有够远的键对中,最短的那个距离(Å)。

detect 在没有这样的键对时留 f64::MAX,但 Threading::default() 给的是 0.0 —— 拿默认值当“没量到“会读成“两根键完全重合“。

§pairs: usize

检查了多少对键。分母 —— 没有它,crossings = 0 可能只是因为没在看

Trait Implementations§

Source§

impl Clone for Threading

Source§

fn clone(&self) -> Threading

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Threading

Source§

impl Debug for Threading

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Threading

Source§

fn default() -> Threading

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Threading

Source§

fn eq(&self, other: &Threading) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Threading

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.