Closed wvwwvwwv closed 1 year ago
API update.
*::Visitor -> *::Iter.
*::Visitor
*::Iter
*::Accessor -> *::IterMut.
*::Accessor
*::IterMut
ebr::Arc -> ebr::Shared.
ebr::Arc
ebr::Shared
ebr::Arc::get_ref_with -> ebr::Shared::get_guarded_ref.
ebr::Arc::get_ref_with
ebr::Shared::get_guarded_ref
ebr::Arc::ptr -> ebr::Shared::get_guarded_ptr.
ebr::Arc::ptr
ebr::Shared::get_guarded_ptr
ebr::Arc::release_drop_in_place -> ebr::Shared::drop_in_place.
ebr::Arc::release_drop_in_place
ebr::Shared::drop_in_place
ebr::AtomicArc -> ebr::AtomicShared.
ebr::AtomicArc
ebr::AtomicShared
ebr::AtomicArc::get_arc -> ebr::AtomicShared::get_shared.
ebr::AtomicArc::get_arc
ebr::AtomicShared::get_shared
ebr::AtomicArc::try_into_arc -> ebr::AtomicShared::into_shared.
ebr::AtomicArc::try_into_arc
ebr::AtomicShared::into_shared
ebr::AtomicOwned::try_into_owned -> ebr::AtomicOwned::into_owned.
ebr::AtomicOwned::try_into_owned
ebr::AtomicOwned::into_owned
ebr::Barrier -> ebr::Guard.
ebr::Barrier
ebr::Guard
ebr::Owned::get_ref_with -> ebr::Owned::get_guarded_ref.
ebr::Owned::get_ref_with
ebr::Owned::get_guarded_ref
ebr::Owned::ptr -> ebr::Owned::get_guarded_ptr.
ebr::Owned::ptr
ebr::Owned::get_guarded_ptr
ebr::Ptr::as_raw -> ebr::Ptr::as_ptr.
ebr::Ptr::as_raw
ebr::Ptr::as_ptr
ebr::Ptr::get_arc -> ebr::Ptr::get_shared.
ebr::Ptr::get_arc
ebr::Ptr::get_shared
*::first_occupied_entry* -> *::first_entry*.
*::first_occupied_entry*
*::first_entry*
HashIndex::read -> HashIndex::peek_with.
HashIndex::read
HashIndex::peek_with
HashIndex::read_with -> HashIndex::peek.
HashIndex::read_with
HashIndex::peek
Queue::peek -> Queue::peek_with.
Queue::peek
Queue::peek_with
Queue::peek_with -> Queue::peek.
Stack::peek -> Stack::peek_with.
Stack::peek
Stack::peek_with
Stack::peek_with -> Stack::peek.
TreeIndex::read -> TreeIndex::peek_with.
TreeIndex::read
TreeIndex::peek_with
TreeIndex::read_with -> TreeIndex::peek.
TreeIndex::read_with
TreeIndex::peek
Remove HashMap::upsert*: superseded by hash_map::Entry::and_modify and hash_map::Entry::or_insert*.
HashMap::upsert*
hash_map::Entry::and_modify
hash_map::Entry::or_insert*
use scc::HashMap; let hashmap: HashMap<u64, u32> = HashMap::default(); // hashmap.upsert(1, || 2, |_, v| *v = 3); hashmap.entry(1).and_modify(|v| { *v = 3 }).or_insert(2);
HashIndex::modify*
HashIndex::update*
HashIndex::entry*
HashIndex::get*
use scc::HashIndex; let hashindex: HashIndex<u64, u32> = HashIndex::default(); assert!(hashindex.insert(1, 1).is_ok()); // hashindex.modify(&1, |_, v| Some(Some(2))); if let Some(mut o) = hashindex.get(&1) { o.update(2); } // unsafe { hashindex.update(&1, |_, v| { *v = 3; true } ); } if let Some(mut o) = hashindex.get(&1) { unsafe { *o.get_mut() = 3; } }
Hash*::for_each*
HashMap::retain*
use scc::HashMap; let hashmap: HashMap<u64, u32> = HashMap::default(); assert!(hashmap.insert(1, 1).is_ok()); // hashmap.for_each(|_, v| { *v = 2; }); hashmap.retain(|_, v| { *v = 2; true });
Hash*::clear*
Hash*::prune*
Hash*::retain*
()
API update.
*::Visitor
->*::Iter
.*::Accessor
->*::IterMut
.ebr::Arc
->ebr::Shared
.ebr::Arc::get_ref_with
->ebr::Shared::get_guarded_ref
.ebr::Arc::ptr
->ebr::Shared::get_guarded_ptr
.ebr::Arc::release_drop_in_place
->ebr::Shared::drop_in_place
.ebr::AtomicArc
->ebr::AtomicShared
.ebr::AtomicArc::get_arc
->ebr::AtomicShared::get_shared
.ebr::AtomicArc::try_into_arc
->ebr::AtomicShared::into_shared
.ebr::AtomicOwned::try_into_owned
->ebr::AtomicOwned::into_owned
.ebr::Barrier
->ebr::Guard
.ebr::Owned::get_ref_with
->ebr::Owned::get_guarded_ref
.ebr::Owned::ptr
->ebr::Owned::get_guarded_ptr
.ebr::Ptr::as_raw
->ebr::Ptr::as_ptr
.ebr::Ptr::get_arc
->ebr::Ptr::get_shared
.*::first_occupied_entry*
->*::first_entry*
.HashIndex::read
->HashIndex::peek_with
.HashIndex::read_with
->HashIndex::peek
.Queue::peek
->Queue::peek_with
.Queue::peek_with
->Queue::peek
.Stack::peek
->Stack::peek_with
.Stack::peek_with
->Stack::peek
.TreeIndex::read
->TreeIndex::peek_with
.TreeIndex::read_with
->TreeIndex::peek
.Remove
HashMap::upsert*
: superseded byhash_map::Entry::and_modify
andhash_map::Entry::or_insert*
.HashIndex::modify*
andHashIndex::update*
: superseded byHashIndex::entry*
,HashIndex::get*
.Hash*::for_each*
: superseded byHashMap::retain*
.Hash*::clear*
,Hash*::prune*
, andHash*::retain*
return()
.