pub struct Ref<'refcell, T> { /* private fields */ }
Expand description
§Ref type as output for borrow method
We need this type to handle decrementing shared ref count after they go out of scope
Trait Implementations§
Auto Trait Implementations§
impl<'refcell, T> Freeze for Ref<'refcell, T>
impl<'refcell, T> !RefUnwindSafe for Ref<'refcell, T>
impl<'refcell, T> !Send for Ref<'refcell, T>
impl<'refcell, T> !Sync for Ref<'refcell, T>
impl<'refcell, T> Unpin for Ref<'refcell, T>
impl<'refcell, T> !UnwindSafe for Ref<'refcell, T>
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