mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-07-17 15:56:57 +02:00
gotta replace that Measure thing with RwLock<[u16;2]>
This commit is contained in:
parent
60dbd89fc9
commit
9ef63324af
6 changed files with 26 additions and 21 deletions
|
|
@ -3,6 +3,7 @@ use ::std::sync::{Arc, RwLock, atomic::{AtomicUsize, Ordering::*}};
|
|||
use ::atomic_float::AtomicF64;
|
||||
use ::tengri::{draw::*, term::*};
|
||||
|
||||
impl <T: AsRef<Clock>+AsMut<Clock>> HasClock for T {}
|
||||
pub trait HasClock: AsRef<Clock> + AsMut<Clock> {
|
||||
fn clock (&self) -> &Clock { self.as_ref() }
|
||||
fn clock_mut (&mut self) -> &mut Clock { self.as_mut() }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue