mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-01-12 04:38:49 +00:00
14 lines
291 B
Rust
14 lines
291 B
Rust
|
use crate::{Atom, AtomFamily};
|
||
|
|
||
|
use std::hash::Hash;
|
||
|
|
||
|
pub trait FamilyKey: PartialEq + Hash {}
|
||
|
impl<T: PartialEq + Hash> FamilyKey for T {}
|
||
|
|
||
|
pub trait AtomValue: PartialEq {}
|
||
|
impl<T: PartialEq> AtomValue for T {}
|
||
|
|
||
|
pub trait Readable<T>: 'static {
|
||
|
fn load(&'static self) -> RecoilItem;
|
||
|
}
|