diff --git a/main/refuse/all.html b/main/refuse/all.html index a2d9c97..d5a3c45 100644 --- a/main/refuse/all.html +++ b/main/refuse/all.html @@ -1 +1 @@ -
Architecture overview of the underlying design of Refuse.
+Architecture overview of the underlying design of Refuse.
Refuse is an incremental, tracing garbage collector. Incremental garbage collectors can only run when it knows no threads are currently accessing diff --git a/main/refuse/derive.MapAs.html b/main/refuse/derive.MapAs.html index bcc0301..2b4bdab 100644 --- a/main/refuse/derive.MapAs.html +++ b/main/refuse/derive.MapAs.html @@ -1,4 +1,4 @@ -
#[derive(MapAs)]
+MapAs in refuse - Rust #[derive(MapAs)]
{
// Attributes available to this derive:
#[map_as]
diff --git a/main/refuse/derive.Trace.html b/main/refuse/derive.Trace.html
index 76996ab..18e54ae 100644
--- a/main/refuse/derive.Trace.html
+++ b/main/refuse/derive.Trace.html
@@ -1,4 +1,4 @@
-Trace in refuse - Rust #[derive(Trace)]
+Trace in refuse - Rust #[derive(Trace)]
{
// Attributes available to this derive:
#[trace]
diff --git a/main/refuse/fn.collect.html b/main/refuse/fn.collect.html
index 2c36f1b..65bfd23 100644
--- a/main/refuse/fn.collect.html
+++ b/main/refuse/fn.collect.html
@@ -1,4 +1,4 @@
-collect in refuse - Rust pub fn collect()
Expand description
Invokes the garbage collector.
+collect in refuse - Rust pub fn collect()
Expand description
Invokes the garbage collector.
§Panics
This function will panic if any CollectionGuard
s are held and not
yielding by the current thread when invoked. If a guard is held, consider
diff --git a/main/refuse/fn.try_collect.html b/main/refuse/fn.try_collect.html
index a222a50..3e8fa24 100644
--- a/main/refuse/fn.try_collect.html
+++ b/main/refuse/fn.try_collect.html
@@ -1,4 +1,4 @@
-
try_collect in refuse - Rust Function refuse::try_collect
source · pub fn try_collect() -> Result<(), WouldDeadlock>
Expand description
Invokes the garbage collector.
+try_collect in refuse - Rust Function refuse::try_collect
source · pub fn try_collect() -> Result<(), WouldDeadlock>
Expand description
Invokes the garbage collector.
§Errors
If any CollectionGuard
s are held by this thread when this function is
invoked, WouldDeadlock
is returned.
diff --git a/main/refuse/index.html b/main/refuse/index.html
index 8869a57..dce800e 100644
--- a/main/refuse/index.html
+++ b/main/refuse/index.html
@@ -1,4 +1,4 @@
-refuse - Rust Expand description
§Refuse
+refuse - Rust Expand description
§Refuse
An easy-to-use, incremental, multi-threaded garbage collector for Rust.
//! A basic usage example demonstrating the garbage collector.
diff --git a/main/refuse/struct.AnyRef.html b/main/refuse/struct.AnyRef.html
index 698da6f..031190e 100644
--- a/main/refuse/struct.AnyRef.html
+++ b/main/refuse/struct.AnyRef.html
@@ -1,4 +1,4 @@
-AnyRef in refuse - Rust pub struct AnyRef { /* private fields */ }
Expand description
A type-erased garbage collected reference.
+AnyRef in refuse - Rust pub struct AnyRef { /* private fields */ }
Expand description
A type-erased garbage collected reference.
Implementations§
source§impl AnyRef
sourcepub const fn downcast_ref<T>(&self) -> Ref<T>where
T: Collectable,
Returns a Ref<T>
.
This function does not do any type checking. If T
is not the correct
diff --git a/main/refuse/struct.AnyRoot.html b/main/refuse/struct.AnyRoot.html
index 002e1ad..44e62d7 100644
--- a/main/refuse/struct.AnyRoot.html
+++ b/main/refuse/struct.AnyRoot.html
@@ -1,4 +1,4 @@
-
AnyRoot in refuse - Rust pub struct AnyRoot { /* private fields */ }
Expand description
A type-erased root garbage collected reference.
+AnyRoot in refuse - Rust pub struct AnyRoot { /* private fields */ }
Expand description
A type-erased root garbage collected reference.
Implementations§
source§impl AnyRoot
sourcepub fn load<T>(&self) -> Option<&T>where
T: Collectable,
Loads a reference to the underlying data. Returns None
if T
is not
the type of the underlying data.
diff --git a/main/refuse/struct.CollectionGuard.html b/main/refuse/struct.CollectionGuard.html
index e0c2335..574928b 100644
--- a/main/refuse/struct.CollectionGuard.html
+++ b/main/refuse/struct.CollectionGuard.html
@@ -1,4 +1,4 @@
-CollectionGuard in refuse - Rust Struct refuse::CollectionGuard
source · pub struct CollectionGuard<'a> { /* private fields */ }
Expand description
A guard that prevents garbage collection while held.
+CollectionGuard in refuse - Rust Struct refuse::CollectionGuard
source · pub struct CollectionGuard<'a> { /* private fields */ }
Expand description
A guard that prevents garbage collection while held.
To perform garbage collection, all threads must be paused to be traced. A
CollectionGuard
allows the ability to read garbage-collectable data by
ensuring the garbage collector can’t run while it exists.
diff --git a/main/refuse/struct.LocalPool.html b/main/refuse/struct.LocalPool.html
index 4c98dcd..635c258 100644
--- a/main/refuse/struct.LocalPool.html
+++ b/main/refuse/struct.LocalPool.html
@@ -1,4 +1,4 @@
-LocalPool in refuse - Rust pub struct LocalPool { /* private fields */ }
Expand description
A pool of garbage collected values.
+LocalPool in refuse - Rust pub struct LocalPool { /* private fields */ }
Expand description
A pool of garbage collected values.
Values from any pool can be read using any CollectionGuard
. Using
independent pools for specific types of data that are meant to be shared
across many threads might be beneficial. However, an individual local pool
diff --git a/main/refuse/struct.Ref.html b/main/refuse/struct.Ref.html
index cf8fb04..8423ed2 100644
--- a/main/refuse/struct.Ref.html
+++ b/main/refuse/struct.Ref.html
@@ -1,4 +1,4 @@
-
Ref in refuse - Rust pub struct Ref<T> { /* private fields */ }
Expand description
A reference to data stored in a garbage collector.
+Ref in refuse - Rust pub struct Ref<T> { /* private fields */ }
Expand description
A reference to data stored in a garbage collector.
Unlike a Root<T>
, this type is not guaranteed to have access to its
underlying data. If no Collectable
reachable via all active Root
s
marks this allocation, it will be collected.
diff --git a/main/refuse/struct.Root.html b/main/refuse/struct.Root.html
index 6c5a8c7..17addf3 100644
--- a/main/refuse/struct.Root.html
+++ b/main/refuse/struct.Root.html
@@ -1,4 +1,4 @@
-Root in refuse - Rust pub struct Root<T>where
+Root in refuse - Rust pub struct Root<T>where
T: Collectable,{ /* private fields */ }
Expand description
A root reference to a T
that has been allocated in the garbage collector.
This type behaves very similarly to Arc<T>
. It implements Deref<Target = T>
, and it is also cheap-to-clone, utilizing atomic reference counting to
track the number of root references currently exist to the underlying value.
diff --git a/main/refuse/struct.Tracer.html b/main/refuse/struct.Tracer.html
index d823945..6220ed2 100644
--- a/main/refuse/struct.Tracer.html
+++ b/main/refuse/struct.Tracer.html
@@ -1,4 +1,4 @@
-Tracer in refuse - Rust pub struct Tracer<'a> { /* private fields */ }
Expand description
A tracer for the garbage collector.
+Tracer in refuse - Rust pub struct Tracer<'a> { /* private fields */ }
Expand description
A tracer for the garbage collector.
This type allows Collectable
values to mark()
any
Ref<T>
s they contain.
Implementations§
source§impl<'a> Tracer<'a>
sourcepub fn mark(&mut self, collectable: impl Into<AnyRef>)
Marks collectable
as being referenced, ensuring it is not garbage
diff --git a/main/refuse/struct.WouldDeadlock.html b/main/refuse/struct.WouldDeadlock.html
index 25a2fc9..4208dbe 100644
--- a/main/refuse/struct.WouldDeadlock.html
+++ b/main/refuse/struct.WouldDeadlock.html
@@ -1,4 +1,4 @@
-
WouldDeadlock in refuse - Rust Struct refuse::WouldDeadlock
source · pub struct WouldDeadlock;
Expand description
An error indicating an operation would deadlock.
+WouldDeadlock in refuse - Rust Struct refuse::WouldDeadlock
source · pub struct WouldDeadlock;
Expand description
An error indicating an operation would deadlock.
CollectionGuard::acquire
can be called multiple times from the same
thread, but some operations require that all guards for the current thread
have been released before performing. This error signals when an operation
diff --git a/main/refuse/struct.YieldComplete.html b/main/refuse/struct.YieldComplete.html
index a1897f3..bb5051f 100644
--- a/main/refuse/struct.YieldComplete.html
+++ b/main/refuse/struct.YieldComplete.html
@@ -1,4 +1,4 @@
-
YieldComplete in refuse - Rust Struct refuse::YieldComplete
source · pub struct YieldComplete;
Expand description
A marker indicating that a coordinated
+YieldComplete in refuse - Rust Struct refuse::YieldComplete
source · pub struct YieldComplete;
Expand description
A marker indicating that a coordinated
yield has completed.
Auto Trait Implementations§
§impl Freeze for YieldComplete
§impl RefUnwindSafe for YieldComplete
§impl Send for YieldComplete
§impl Sync for YieldComplete
§impl Unpin for YieldComplete
§impl UnwindSafe for YieldComplete
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/main/refuse/struct.Yielder.html b/main/refuse/struct.Yielder.html
index ce8987c..aa99383 100644
--- a/main/refuse/struct.Yielder.html
+++ b/main/refuse/struct.Yielder.html
@@ -1,4 +1,4 @@
-Yielder in refuse - Rust pub struct Yielder<'a>(/* private fields */);
Expand description
A pending yield to the garbage collector.
+Yielder in refuse - Rust pub struct Yielder<'a>(/* private fields */);
Expand description
A pending yield to the garbage collector.
Implementations§
Auto Trait Implementations§
§impl<'a> Freeze for Yielder<'a>
§impl<'a> !RefUnwindSafe for Yielder<'a>
§impl<'a> Send for Yielder<'a>
§impl<'a> Sync for Yielder<'a>
§impl<'a> Unpin for Yielder<'a>
§impl<'a> !UnwindSafe for Yielder<'a>
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/main/refuse/trait.Collectable.html b/main/refuse/trait.Collectable.html
index 1539c49..23d994d 100644
--- a/main/refuse/trait.Collectable.html
+++ b/main/refuse/trait.Collectable.html
@@ -1,4 +1,4 @@
-Collectable in refuse - Rust Trait refuse::Collectable
source · pub trait Collectable:
+Collectable in refuse - Rust Trait refuse::Collectable
source · pub trait Collectable:
Trace
+ MapAs
+ Send
diff --git a/main/refuse/trait.ContainsNoRefs.html b/main/refuse/trait.ContainsNoRefs.html
index a536a98..8b1ae93 100644
--- a/main/refuse/trait.ContainsNoRefs.html
+++ b/main/refuse/trait.ContainsNoRefs.html
@@ -1,4 +1,4 @@
-ContainsNoRefs in refuse - Rust Trait refuse::ContainsNoRefs
source · pub trait ContainsNoRefs:
+ContainsNoRefs in refuse - Rust Trait refuse::ContainsNoRefs
source · pub trait ContainsNoRefs:
Send
+ Sync
+ 'static { }
Expand description
A type that can be garbage collected that cannot contain any Ref<T>
s.
diff --git a/main/refuse/trait.MapAs.html b/main/refuse/trait.MapAs.html
index a704179..b5c2885 100644
--- a/main/refuse/trait.MapAs.html
+++ b/main/refuse/trait.MapAs.html
@@ -1,4 +1,4 @@
-MapAs in refuse - Rust pub trait MapAs:
+MapAs in refuse - Rust pub trait MapAs:
Send
+ Sync
+ 'static {
diff --git a/main/refuse/trait.NoMapping.html b/main/refuse/trait.NoMapping.html
index 53f7df7..4d1bfad 100644
--- a/main/refuse/trait.NoMapping.html
+++ b/main/refuse/trait.NoMapping.html
@@ -1,4 +1,4 @@
-NoMapping in refuse - Rust pub trait NoMapping:
+NoMapping in refuse - Rust pub trait NoMapping:
Send
+ Sync
+ 'static { }
Expand description
A type that implements MapAs
with an empty implementation.
diff --git a/main/refuse/trait.SimpleType.html b/main/refuse/trait.SimpleType.html
index 55838ac..067c546 100644
--- a/main/refuse/trait.SimpleType.html
+++ b/main/refuse/trait.SimpleType.html
@@ -1,4 +1,4 @@
-SimpleType in refuse - Rust Trait refuse::SimpleType
source · pub trait SimpleType:
+SimpleType in refuse - Rust Trait refuse::SimpleType
source · pub trait SimpleType:
Send
+ Sync
+ 'static { }
Expand description
A type that can contain no Ref<T>
s and has an empty MapAs
diff --git a/main/refuse/trait.Trace.html b/main/refuse/trait.Trace.html
index 6b1496a..6c513ba 100644
--- a/main/refuse/trait.Trace.html
+++ b/main/refuse/trait.Trace.html
@@ -1,4 +1,4 @@
-
Trace in refuse - Rust pub trait Trace:
+Trace in refuse - Rust pub trait Trace:
Send
+ Sync
+ 'static {
diff --git a/main/refuse_macros/all.html b/main/refuse_macros/all.html
index 2f82d67..0e6f5d5 100644
--- a/main/refuse_macros/all.html
+++ b/main/refuse_macros/all.html
@@ -1 +1 @@
-List of all items in this crate
\ No newline at end of file
+List of all items in this crate
\ No newline at end of file
diff --git a/main/refuse_macros/derive.MapAs.html b/main/refuse_macros/derive.MapAs.html
index 3ad2a23..a022de0 100644
--- a/main/refuse_macros/derive.MapAs.html
+++ b/main/refuse_macros/derive.MapAs.html
@@ -1,4 +1,4 @@
-MapAs in refuse_macros - Rust Derive Macro refuse_macros::MapAs
source · #[derive(MapAs)]
+MapAs in refuse_macros - Rust Derive Macro refuse_macros::