What does the exclamation point mean in a trait implementation?

前端 未结 2 1396
我在风中等你
我在风中等你 2021-02-12 20:51

I found in the library reference for std::rc::Rc this trait implementation

impl !Send for Rc 
where
    T: ?Sized, 

2条回答
  •  有刺的猬
    2021-02-12 21:03

    This is a negative trait impl, so you can read it as opting out of the Send trait.

提交回复
热议问题