19 lines
278 B
Rust
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 {
|
|
}
|