MCPcopy Create free account
hub / github.com/cosdata/cosdata / drop

Method drop

src/models/prob_node.rs:500–510  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

498
499impl Drop for ProbNode {
500 fn drop(&mut self) {
501 for neighbor in &self.neighbors {
502 let ptr = neighbor.load(Ordering::SeqCst);
503
504 if !ptr.is_null() {
505 unsafe {
506 drop(Box::from_raw(ptr));
507 }
508 }
509 }
510 }
511}

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected