core, output: add Has, HasSize
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-05-14 17:53:34 +03:00
parent a9619ab9ce
commit 8bfd1a23a1
2 changed files with 14 additions and 5 deletions

View file

@ -14,3 +14,8 @@ pub type Perhaps<T> = Result<Option<T>, Box<dyn Error>>;
}
};
}
pub trait Has<T>: Send + Sync {
fn get (&self) -> &T;
fn get_mut (&mut self) -> &mut T;
}