That is correct only for classes with no mutable stored properties. Rust’s Arc<T>
forces the object to be immutable (get_mut
aside), so it is not an equivalent to a class with mutable properties. Swift allows this but forces them to be non-Sendable
(unless you override it with @unchecked
).
3 Likes