You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
fn render_posts(posts: &Vec<PostCmp>) -> Element<Message> {
// let c = Column::new();
// let posts: Element<Message> = posts
// .iter()
// .fold(Column::new().spacing(10), |col, p| col.push(p.view_in_list()),
// )
// .into();
// c.push(Text::new(String::from("Posts:")).size(15))
// .push(posts).into()
column(
posts
.iter()
.map(|post| {
post.view_in_list()
})
.collect(),
).into()
}
I am new to rust and iced, why do commented codes not show up and uncommented codes show up normally. Why does this happen, this is full code
Thanks
Beta Was this translation helpful? Give feedback.
All reactions