From 20f67f13bb16ef42bdf739ef8d7ac6454884159e Mon Sep 17 00:00:00 2001 From: Taylor Holliday Date: Wed, 22 Jan 2025 10:13:21 -0800 Subject: [PATCH] #72 update comments --- src/view.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view.rs b/src/view.rs index 9218464..0498ac2 100644 --- a/src/view.rs +++ b/src/view.rs @@ -23,7 +23,7 @@ impl<'a> LayoutArgs<'a> { } } -/// Trait for the unit of UI composition. +/// Object-safe part of View for compatibility with AnyView. pub trait DynView: private::Sealed + DynClone + 'static { /// Builds an AccessKit tree. The node ID for the subtree is returned. All generated nodes are accumulated. fn access( @@ -85,6 +85,7 @@ pub trait DynView: private::Sealed + DynClone + 'static { } } +/// Trait for the unit of UI composition. pub trait View: DynView + Clone {} impl View for V {} \ No newline at end of file