Add module documentation to GPUI and make gpui.rs example compile

This commit is contained in:
Mikayla
2024-01-23 21:29:12 -08:00
parent c07e416dc0
commit d80959d64e
4 changed files with 60 additions and 26 deletions
+12
View File
@@ -46,6 +46,18 @@ impl IntoElement for &'static str {
}
}
impl IntoElement for String {
type Element = SharedString;
fn element_id(&self) -> Option<ElementId> {
None
}
fn into_element(self) -> Self::Element {
self.into()
}
}
impl Element for SharedString {
type State = TextState;