2023-11-08 00:45:06 +00:00

19 lines
278 B
Rust

use std::rc::Rc;
use std::cell::RefCell;
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}
pub trait SharedFromSelf {
fn shared_from_self(&self) -> Rc::<RefCell::<Self>>;
}
pub trait Singleton {
}