Open Luro02 opened 4 years ago
For most things one can use the Deref and DerefMut trait, but there are some types like usize, where most functions take self by value and create a new Self as the output. Such functions are ignored by Deref.
Deref
DerefMut
usize
self
Self
For most things one can use the
Deref
andDerefMut
trait, but there are some types likeusize
, where most functions takeself
by value and create a newSelf
as the output. Such functions are ignored byDeref
.