Basically yes. Safe functions have defined behavior for all valid inputs. Mutable references that alias are not valid inputs. In a safe context, the compiler upholds that invariant. In an unsafe context it's up to the user not to break it with unsafe operations.
View all comments
Show parent comment
5
u/seanbaxter Oct 26 '24
Basically yes. Safe functions have defined behavior for all valid inputs. Mutable references that alias are not valid inputs. In a safe context, the compiler upholds that invariant. In an unsafe context it's up to the user not to break it with unsafe operations.