feat: updated taiko calc

This commit is contained in:
MaxOhn
2024-09-28 19:14:47 +02:00
parent 3c57b9b409
commit 64001a3f8f
13 changed files with 248 additions and 191 deletions
+4
View File
@@ -6,8 +6,10 @@ pub use inner::*;
mod inner {
use std::{cell::RefCell, rc::Rc};
#[repr(transparent)]
pub struct RefCount<T>(pub(super) Rc<RefCell<T>>);
#[repr(transparent)]
pub struct Weak<T>(pub(super) std::rc::Weak<RefCell<T>>);
pub type Ref<'a, T> = std::cell::Ref<'a, T>;
@@ -45,8 +47,10 @@ mod inner {
sync::{Arc, RwLock, RwLockReadGuard, RwLockWriteGuard},
};
#[repr(transparent)]
pub struct RefCount<T>(pub(super) Arc<RwLock<T>>);
#[repr(transparent)]
pub struct Weak<T>(pub(super) std::sync::Weak<RwLock<T>>);
pub struct Ref<'a, T: ?Sized>(RwLockReadGuard<'a, T>);