Is there a way to tell the Rust's drop checker we technically own a `T` without it being in generic parameters?

后端 未结 0 404

Let\'s say I want to write code like this:

struct Inspector<\'a>(&\'a u8);

struct Foo<\'a> {
    value:          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题