Expand description
§speedy_refs
A collection of useful smart pointers including some alternatives to std smart pointers.
§FEATURES
-
Rc: Blazingly fast alternative to the std
Rc
smart pointer. -
RefCell: Blazingly fast alternative to the std
RefCell
. -
Arc: Lighter alternative the std
Arc
with equivalent performance -
HeapCell: Similar to
NonNull
with simpler typedeallocation
anddropping
-
Reon - Read only static pointer that implements
Sync
andSend
-
RcCell - Simple and more concise version of
Rc<RefCell>
-
SharedCell: For Shared ownership without borrow checking.
-
Borrow: A cloneable shared ownership without borrow checking. Like how references are used in languages like java, go, python, etc.
Structs§
- Arc
- Borrow
- A
Borrow
is a shared reference toT
that may be used to modifyT
without any borrow checking. - Borrow
Flag - BorrowFlag
- Heap
Cell - A
HeapCell
is Heap allocated type pointer. Functions likeNonNull
+UnsafeCell
- Rc
- speedy_refs::Rc
- RcCell
- speedy_refs::RcCell
- Ref
- An immutable borrow of RefCell
- RefCell
- RefCell
- RefMut
- Reon
- Reon (Read Only)
- Shared
Cell - Freely share multiple mutable references within a single thread.