Expand description
Convenience types that immutably and mutably deref into an arbitrary type reachable from their owned inner type.
These types can be used as a purely-safe alternative to replace some of the
typical use cases for self-referential types.
They can also be used to limit access to and visibility of an inner type by
acting as wrappers that restrict callers to only accessing its Deref::Target
type,
which we call Ref
in this crate.
Structs
- A struct that holds an inner value and a function that is used deref the
Inner
value into a&Ref
. - Similar to
DerefsTo
, but supports mutable dereferencing too.