`unsafe trait` means that the _implementation_ has constraints they need to meet for the behavior to be safe (which is the intent here, namely that it should always return the same value and always be a safe to deref value), unsafe on the fn means that the _caller_ of that fn has some constraints they need to meet for it to be safe (of which there are none in this case). PiperOrigin-RevId: 668028628pull/17970/head
parent
0056835a0d
commit
5cebdef929
2 changed files with 14 additions and 13 deletions
Loading…
Reference in new issue