What diff in these fn?

⚓ Rust    📅 2026-01-13    👤 surdeus    👁️ 11      

surdeus

Warning

This post was published 58 days ago. The information described in this article may have changed.

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: What diff in these fn?

fn dyn_dispatch(t: &dyn F) {
t.f();
}

fn dyn_dispatch1<T: F + ?Sized>(t: &T) {
t.f();
}

3 posts - 3 participants

Read full topic

🏷️ Rust_feed