impl Trait
Also known as: return-position impl Trait, RPIT, RPITIT
impl Trait lets a function accept or return a value of some type that implements a trait without naming the concrete type.
See the Rust reference.
Also known as: return-position impl Trait, RPIT, RPITIT
impl Trait lets a function accept or return a value of some type that implements a trait without naming the concrete type.
See the Rust reference.
Loading definition…