Only allow mutable objects to call back into C++

Authored by vandenoever on Oct 25 2018, 4:06 PM.

Description

Only allow mutable objects to call back into C++

When an object calls into C++, that C++ code may again call into Rust.
The original call might have an immutable reference and the nested
call could receive a mutable reference. That is not allowed and
undefined behaviour. For this reason, calling into C++ is only allowed
from mutable objects.

Details

Committed
vandenoeverOct 25 2018, 4:06 PM
Parents
R881:a78f8c9b737b: Fix description and increase version number
Branches
Unknown
Tags
Unknown