mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Implement Debug for egui::Context (#2248)
* Implement Debug for Context * Update changelog
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user