pub type Ref<'a, T> = MutexGuard<'a, T>;Available on crate feature
sync-mutex only.Expand description
A shared borrow of the contents.
The same guard as RefMut under sync-mutex: a mutex has one kind of lock, so a reader
and a writer exclude each other. Code that takes two borrow()s at once compiles and works
without the feature, and deadlocks with it — which is the rule at the top of this module.
Aliased Type§
pub struct Ref<'a, T> { /* private fields */ }