From 4013cf9229d85e795c86fb493941ba517a3412f4 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 22 Nov 2023 13:32:08 -0700 Subject: [PATCH] One more doc --- crates/gpui2/src/element.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/gpui2/src/element.rs b/crates/gpui2/src/element.rs index bd8cfb45c4..8e0851223a 100644 --- a/crates/gpui2/src/element.rs +++ b/crates/gpui2/src/element.rs @@ -107,6 +107,7 @@ pub trait IntoElement: Sized { } } + /// Map this type to a different type with the given function. Useful when method chaining. fn map(self, f: impl FnOnce(Self) -> U) -> U where Self: Sized,