V
Size: a a a
V
V
D
as _ нет никакой "коэрции", а вот с ней — естьV
V
K
as _ нет никакой "коэрции", а вот с ней — естьK
D
PL
D
trait Message {
fn boxed<'a>(self) -> Box<dyn Message + 'a>
where
Self: Sized + 'a,
{
Box::new(self)
}
}let c = vec![foo.boxed()];D
trait Message {
fn boxed<'a>(self) -> Box<dyn Message + 'a>
where
Self: Sized + 'a,
{
Box::new(self)
}
}let c = vec![foo.boxed()];DZ
DZ
DZ
DZ
MS
trait Message {} -> trait Message: Send {}DZ
DZ
DZ