1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Implement Debug for egui::Context (#2248)

* Implement Debug for Context

* Update changelog
This commit is contained in:
Steven Casper
2022-11-06 13:49:29 -08:00
committed by GitHub
parent a0b3f1126b
commit 7434a7d7d5
2 changed files with 7 additions and 0 deletions

View File

@@ -168,6 +168,12 @@ impl ContextImpl {
#[derive(Clone)]
pub struct Context(Arc<RwLock<ContextImpl>>);
impl std::fmt::Debug for Context {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("Context").finish_non_exhaustive()
}
}
impl std::cmp::PartialEq for Context {
fn eq(&self, other: &Context) -> bool {
Arc::ptr_eq(&self.0, &other.0)