pub struct InnerRef<D, Ref: ?Sized> { /* private fields */ }
Implementations§
Source§impl<D, Ref: ?Sized> InnerRef<D, &Ref>
impl<D, Ref: ?Sized> InnerRef<D, &Ref>
Sourcepub unsafe fn create_from_ref(value: ManuallyDrop<D>, _r: &Ref) -> Self
pub unsafe fn create_from_ref(value: ManuallyDrop<D>, _r: &Ref) -> Self
§Safety
The return value type of this function should ensure the correctness of lifetimes.
Sourcepub unsafe fn create_ref(value: ManuallyDrop<D>) -> Self
pub unsafe fn create_ref(value: ManuallyDrop<D>) -> Self
§Safety
The return value type of this function should ensure the correctness of lifetimes.
Source§impl<D, Ref: ?Sized> InnerRef<D, &mut Ref>
impl<D, Ref: ?Sized> InnerRef<D, &mut Ref>
Sourcepub unsafe fn create_from_mut(value: ManuallyDrop<D>, _r: &mut Ref) -> Self
pub unsafe fn create_from_mut(value: ManuallyDrop<D>, _r: &mut Ref) -> Self
§Safety
The return value type of this function should ensure the correctness of lifetimes.
Sourcepub unsafe fn create_mut(value: ManuallyDrop<D>) -> Self
pub unsafe fn create_mut(value: ManuallyDrop<D>) -> Self
§Safety
The return value type of this function should ensure the correctness of lifetimes.
Trait Implementations§
Auto Trait Implementations§
impl<D, Ref> Freeze for InnerRef<D, Ref>
impl<D, Ref> RefUnwindSafe for InnerRef<D, Ref>
impl<D, Ref> Send for InnerRef<D, Ref>
impl<D, Ref> Sync for InnerRef<D, Ref>
impl<D, Ref> Unpin for InnerRef<D, Ref>
impl<D, Ref> UnwindSafe for InnerRef<D, Ref>
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