What happens when I clone a struct with Arc inside?
Advertisements I would like to know what happens when I clone a struct that has properties inside of Arc. #[derive(Clone)] pub struct Foo { bar: Arc<String> } When I call clone on Foo, what happens? Is it safe to share the Foo struct between threads and use the underlying Arc or should I do something… Read More What happens when I clone a struct with Arc inside?