pub struct Fingerprint { /* private fields */ }Expand description
Owned topological fingerprint.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let fp = system.fingerprint(&seams::FingerprintOptions::default())?;
assert!(!fp.key()?.is_empty());
assert_eq!(fp.rings()?.len(), 13);Implementations§
Source§impl Fingerprint
impl Fingerprint
Sourcepub fn key(&self) -> Result<String, Error>
pub fn key(&self) -> Result<String, Error>
Frame fingerprint text.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let fp = system.fingerprint(&seams::FingerprintOptions::default())?;
assert!(fp.key()?.contains('-') || !fp.key()?.is_empty());Sourcepub fn atom(&self, index: i32) -> Result<String, Error>
pub fn atom(&self, index: i32) -> Result<String, Error>
Local key of one atom.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let fp = system.fingerprint(&seams::FingerprintOptions::default())?;
assert!(!fp.atom(0)?.is_empty());Sourcepub fn rings(&self) -> Result<Vec<i32>, Error>
pub fn rings(&self) -> Result<Vec<i32>, Error>
Primitive-ring census stored on the fingerprint.
counts[k] is the number of rings of size k.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let fp = system.fingerprint(&seams::FingerprintOptions::default())?;
assert!(fp.rings()?.iter().sum::<i32>() > 0);Trait Implementations§
Source§impl Drop for Fingerprint
impl Drop for Fingerprint
impl Send for Fingerprint
Auto Trait Implementations§
impl !Sync for Fingerprint
impl Freeze for Fingerprint
impl RefUnwindSafe for Fingerprint
impl Unpin for Fingerprint
impl UnsafeUnpin for Fingerprint
impl UnwindSafe for Fingerprint
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