diff --git a/main/refuse/all.html b/main/refuse/all.html index 1a09d0d..4a608df 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 0b0742f..87bdae7 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 646492c..e704626 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 d9985d4..3b428c8 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 8369f91..200d5df 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 be8c377..35c7ab7 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 c8320dc..e3cccad 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 daf2995..f2205fe 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 7dcd173..527074b 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 0e13fe3..b4570ff 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 2613a43..faa0a08 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 06b8ca8..51e8b3f 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 b376dc4..8f7df8c 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 d7810e6..f886cfd 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 06f02fd..2fae027 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 { /* private fields */ }
Expand description
A marker indicating that a coordinated
+YieldComplete in refuse - Rust Struct refuse::YieldComplete
source · pub struct YieldComplete { /* private fields */ }
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 cba4dcf..16ae25c 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 d9f1cb0..2435fad 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 ac4b7e6..9829693 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 805fd13..bd9a20f 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 6613fb5..72eb8b5 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 18133a0..4d1f564 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 7540ee7..5b89d38 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 fab41e4..9d0eaa1 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 4155746..df30d3a 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::