trait Foo { type Item; fn with_type<T>(self) -> Self where Self: Foo<Item = T> { self } } という虚無メソッドが生えてきた
struct Hoge<T> { ... } impl<T> Foo for Hoge<T> { type Item = T; } let hoge = Hoge::default(); hoge.with_type::<u32>() のように使う
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
struct Hoge<T> { ... } impl<T> Foo for Hoge<T> { type Item = T; } let hoge = Hoge::default(); hoge.with_type::<u32>() のように使う