Skip to content

Define the `InteriorBorrow` trait

Artem Starikov requested to merge interior-borrow into owned-values

The InteriorBorrow trait lets one create T out of &T, but the new value will contain references to the original value. This trait was previously discussed as AsBorrowed, but IMHO InteriorBorrow better reflects this trait's purpose.

Edited by Artem Starikov

Merge request reports