pub struct ProtectedRef<'a, T>(/* private fields */)
where
T: ?Sized;Expand description
A wrapper around a reference to prevent inner access.
Conceptually similar to &T but prevents direct access to the inner value outside of this crate.
Auto Trait Implementations§
impl<'a, T> Freeze for ProtectedRef<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for ProtectedRef<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for ProtectedRef<'a, T>
impl<'a, T> Sync for ProtectedRef<'a, T>
impl<'a, T> Unpin for ProtectedRef<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for ProtectedRef<'a, T>where
T: RefUnwindSafe + ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more