pub struct DescriptorCache { /* private fields */ }Expand description
Thread-safe descriptor cache with max_size limit.
Implementations§
Source§impl DescriptorCache
impl DescriptorCache
Sourcepub fn get(&self, smiles: &str) -> Option<DescriptorEntry>
pub fn get(&self, smiles: &str) -> Option<DescriptorEntry>
Get cached entry for molecule (keyed by canonical SMILES).
Sourcepub fn put(&self, smiles: String, entry: DescriptorEntry)
pub fn put(&self, smiles: String, entry: DescriptorEntry)
Store/update cached entry.
Trait Implementations§
Source§impl Clone for DescriptorCache
impl Clone for DescriptorCache
Source§fn clone(&self) -> DescriptorCache
fn clone(&self) -> DescriptorCache
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 moreAuto Trait Implementations§
impl Freeze for DescriptorCache
impl RefUnwindSafe for DescriptorCache
impl Send for DescriptorCache
impl Sync for DescriptorCache
impl Unpin for DescriptorCache
impl UnsafeUnpin for DescriptorCache
impl UnwindSafe for DescriptorCache
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