None
DE
Zed Weekly: #20
[]
Zed Industries - Blog
I'm currently working on a prettier wrapper that should allow us to speed up the formatting process and there's more to work on, such as remote development — hopefully, no more hint bugs to distract me during next week. #[derive( Element , Clone )] pub struct Avatar { src : ArcCow <' static , str >, shape : Shape , } pub fn avatar ( src : impl Into < ArcCow <' static , str >>) -> Avatar { Avatar { src : src . into (), shape : Shape :: Circle , } } impl Avatar { pub fn shape ( mut self , shape : Shape ) -> Self { self .shape = shape ; self } fn render < V : ' static >(& mut self , _ : & mut V , cx : & mut ViewContext < V >) -> impl IntoElement < V > { let theme = theme ( cx ); let mut img = img (); if self .shape == Shape :: Circle { img = img .