Skip to content

Commit

Permalink
#72 update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Jan 22, 2025
1 parent 57ea8fd commit 20f67f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -85,6 +85,7 @@ pub trait DynView: private::Sealed + DynClone + 'static {
}
}

/// Trait for the unit of UI composition.
pub trait View: DynView + Clone {}

impl<V: DynView + Clone> View for V {}

0 comments on commit 20f67f1

Please sign in to comment.