You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
119 B
Rust

pub trait Boxed
where
Self: std::marker::Sized,
{
fn boxed(self) -> Box<Self> {
Box::new(self)
}
}