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,