feat: context api overhaul

This commit is contained in:
Jonathan Kelley committed 2022-12-02 16:24:49 -08:00
1 parent 11a45c8ef0
commit a61daf220d
44 files changed
+812 -621

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
use crate::factory::RenderReturn;
use crate::nodes::RenderReturn;
use bumpalo::Bump;
use std::cell::Cell;
@@ -8,7 +8,7 @@ pub(crate) struct BumpFrame {
}
impl BumpFrame {
pub fn new(capacity: usize) -> Self {
pub(crate) fn new(capacity: usize) -> Self {
let bump = Bump::with_capacity(capacity);
Self {
bump,
@@ -17,7 +17,7 @@ impl BumpFrame {
}
/// Creates a new lifetime out of thin air
pub unsafe fn try_load_node<'b>(&self) -> Option<&'b RenderReturn<'b>> {
pub(crate) unsafe fn try_load_node<'b>(&self) -> Option<&'b RenderReturn<'b>> {
let node = self.node.get();
if node.is_null() {