What would you call a #rustlang constructor method that uses a type parameter but doesn't use a value of that type?
impl Foo {
fn ???<T>() -> Self {
Self { size: mem::size_of::<T>() }
}
}
`from_type`? `for_type`? Just `new`?
Replying to @Sunjay03
I don't think there is an abstract answer for this. It depends on the type and what it does tbh
4:39 PM - 14 Aug 2019
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.